Commit Graph

147 Commits

Author SHA1 Message Date
Moebius-Strip
6caa9f594a Remove favorites meta tag
Remove the favorites meta tag due to privacy concerns and the fact that it's no longer required.
2018-05-06 09:48:51 -04:00
r888888888
abce4d2551 Raise error on unpermitted params.
Fail loudly if we forget to whitelist a param instead of silently
ignoring it.

misc models: convert to strong params.

artist commentaries: convert to strong params.

* Disallow changing or setting post_id to a nonexistent post.

artists: convert to strong params.

* Disallow setting `is_banned` in create/update actions. Changing it
  this way instead of with the ban/unban actions would leave the artist in
  a partially banned state.

bans: convert to strong params.

* Disallow changing the user_id after the ban has been created.

comments: convert to strong params.

favorite groups: convert to strong params.

news updates: convert to strong params.

post appeals: convert to strong params.

post flags: convert to strong params.

* Disallow users from setting the `is_deleted` / `is_resolved` flags.

ip bans: convert to strong params.

user feedbacks: convert to strong params.

* Disallow users from setting `disable_dmail_notification` when creating feedbacks.
* Disallow changing the user_id after the feedback has been created.

notes: convert to strong params.

wiki pages: convert to strong params.

* Also fix non-Builders being able to delete wiki pages.

saved searches: convert to strong params.

pools: convert to strong params.

* Disallow setting `post_count` or `is_deleted` in create/update actions.

janitor trials: convert to strong params.

post disapprovals: convert to strong params.

* Factor out quick-mod bar to shared partial.
* Fix quick-mod bar to use `Post#is_approvable?` to determine visibility
  of Approve button.

dmail filters: convert to strong params.

password resets: convert to strong params.

user name change requests: convert to strong params.

posts: convert to strong params.

users: convert to strong params.

* Disallow setting password_hash, last_logged_in_at, last_forum_read_at,
  has_mail, and dmail_filter_attributes[user_id].

* Remove initialize_default_image_size (dead code).

uploads: convert to strong params.

* Remove `initialize_status` because status already defaults to pending
  in the database.

tag aliases/implications: convert to strong params.

tags: convert to strong params.

forum posts: convert to strong params.

* Disallow changing the topic_id after creating the post.
* Disallow setting is_deleted (destroy/undelete actions should be used instead).
* Remove is_sticky / is_locked (nonexistent attributes).

forum topics: convert to strong params.

* merges https://github.com/evazion/danbooru/tree/wip-rails-5.1
* lock pg gem to 0.21 (1.0.0 is incompatible with rails 5.1.4)
* switch to factorybot and change all references

Co-authored-by: r888888888 <r888888888@gmail.com>
Co-authored-by: evazion <noizave@gmail.com>

add diffs
2018-04-06 18:09:57 -07:00
BrokenEagle
d54b26c61d Convert tag category Javascript/CSS assets to ERB 2017-12-24 17:01:17 -08:00
evazion
131c0109d4 Address #3415: og:image meta tags can point to video files. 2017-12-06 09:47:57 -06:00
r888888888
3e6cb67c57 only cache notes if a post has notes 2017-11-21 14:46:17 -08:00
r888888888
f180e1bbe2 add favoriting/unfavoriting indicators for fav button 2017-11-17 16:28:51 -08:00
Albert Yi
0674a03fb6 Merge pull request #3353 from BrokenEagle/feat-add-meta-tag-category
Migrated tag logic into config file and added fifth tag category meta
2017-11-13 11:44:15 -08:00
r888888888
893563cf9a render view count js on post/show 2017-11-09 16:13:39 -08:00
BrokenEagle
6838901aac Moved non-config tag category info to its own class 2017-11-07 16:21:29 -08:00
BrokenEagle
1de8fd2bd6 Moved tag logic for Javascript to config file 2017-11-07 10:58:40 -08:00
r888888888
9ffbae3cc0 expose resize image to window functionality to anon users 2017-09-29 18:11:22 -07:00
r888888888
0985f929cc style buttons for upload/post edit pages 2017-09-14 16:56:40 -07:00
r888888888
4c62c5c643 enlargen favorite button 2017-09-07 18:36:00 -07:00
r888888888
bb228d5735 add favorite action underneath image 2017-09-05 14:41:33 -07:00
evazion
9893dc1734 Fix #3237: Meta tags expose posts with censored tags. 2017-07-24 19:40:35 -05:00
r888888888
a177473aee fixes #3237 2017-07-24 12:21:42 -07:00
evazion
8b4e598a12 post replacements: add /post_replacements view. 2017-06-22 17:03:05 -05:00
evazion
ea80d51ecf /posts/$id: add feed discovery link for comments on post. 2017-05-24 16:10:56 -05:00
evazion
648cc9ecb7 Move post replacement create action to post replacements controller. 2017-05-14 21:31:01 -05:00
evazion
4e841c4ea5 post replacement: add "Replace Image" dialog to post sidebar. 2017-05-02 20:41:19 -05:00
r888888888
b7f207180c eliminate responsive tag list 2017-04-26 12:26:51 -07:00
evazion
5303d1052f /posts: fix saved search dropdown for post show page. 2017-04-20 19:05:54 -05:00
evazion
c90614272a /posts/:id - add dtext preview to flag/appeal dialogs. 2017-04-13 15:17:55 -05:00
r888888888
dd4a70c195 fixes #2935: Eliminate the og:description meta tag 2017-03-27 16:01:22 -07:00
r888888888
5676978096 require membership to see post history 2017-03-01 16:29:00 -08:00
evazion
34b6f22594 Clean up artcomms partial. 2017-01-11 04:48:44 -06:00
Albert Yi
af42f52d4a fix references to report_server 2016-12-01 12:34:57 -08:00
Albert Yi
2dbb869188 keep track of post approvals to prevent approval cycles 2016-10-31 17:51:44 -07:00
r888888888
1047d1fd2b add more meta descriptions to more pages 2016-02-09 14:25:23 -08:00
r888888888
2dd4b4cbff add schema.org metatags 2016-02-09 14:02:47 -08:00
r888888888
5f9a6aa0c1 fixes #2465: Switch Twitter cards to use summary card+image 2015-08-25 16:36:05 -07:00
r888888888
f483d0e7a8 add combined flag+appeal listing for posts #262 2015-07-28 15:45:01 -07:00
r888888888
f87c71cf23 remove post view counts, add search counts 2015-07-27 17:27:40 -07:00
r888888888
9e6d08600c store post view counts in reportbooru/fetch view counts from reportbooru #2128 2015-07-21 13:09:32 -07:00
Toks
68d4300f9c Fix Q shortcut in chrome
fixes #2354
2015-07-16 15:19:46 -04:00
r888888888
9f8e723d83 fixes #2438: Flagged posts cannot be approved from post page 2015-07-15 13:26:01 -07:00
Toks
81f588e021 Add key shortcut to add to favgroup 2015-07-01 11:16:07 -04:00
Toks
6a78d75f61 Fix "mark as translated" removing url params 2015-05-23 12:26:31 -04:00
David Frank
8e1a9e7ccb make og:image canonical according to spec 2015-05-21 20:44:37 +08:00
Toks
8c63bf5b72 fixes #1495 2015-05-13 18:25:01 -04:00
SundaySalsa
a6233f297e added responsive css 2015-02-26 17:59:25 -08:00
r888888888
9e505a0b84 * add new bit_flags column to posts
* conditionally enable embedded notes on a per post basis
2015-01-27 17:11:51 -08:00
r888888888
2492148ecd Revert "fixes #2175"
This reverts commit b99ba4a088.
2014-06-20 15:52:47 -07:00
r888888888
44913c1640 Revert "#2188 move share section"
This reverts commit 7971821af3.

Conflicts:
	app/views/posts/show.html.erb
2014-06-20 15:52:47 -07:00
Toks
9c5662b1d6 fixes #2193 2014-06-13 16:45:55 -04:00
r888888888
7971821af3 #2188 move share section 2014-06-12 21:43:58 -07:00
r888888888
b99ba4a088 fixes #2175 2014-06-03 14:22:04 -07:00
Toks
5f12a5e555 fixes #2165 2014-05-25 14:50:07 -04:00
r888888888
c51c76adf3 fix #r-18 tag so it only appears when shared 2014-02-24 18:02:48 -08:00
r888888888
20eaa1f03f fixes #2099 2014-02-18 16:25:52 -08:00