Commit Graph

79 Commits

Author SHA1 Message Date
Albert Yi
d4b1782431 allow more forum posts to be voted on (fixes #3677) 2018-04-27 16:18:31 -07:00
Albert Yi
f2b525a6d2 Implement forum topic voting and tag change pruning (#3580) 2018-04-26 15:31:06 -07:00
Albert Yi
cd88a8df9f fixes #3620 2018-04-12 13:00:48 -07: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
71e05e8502 Fix nonworking forum_post/new when no topic ID is specified 2017-12-28 10:21:03 -08:00
BrokenEagle
31d3215dad Fix page controller and action IDs
- Also fix affected CSS and JS files
2017-12-28 10:20:12 -08:00
evazion
b62b16b5a2 Fix #3398: Show "(deleted)" next to topics in forum searches. 2017-11-24 15:58:45 -06:00
r888888888
974a770bc6 fixes #3354 2017-11-13 16:41:01 -08:00
evazion
7cb7c2fbab Remove ruby DText implementation (#3206). 2017-07-19 16:48:42 -05:00
Albert Yi
87bcc07fae enable ragel parser for remaining dtext endpoints 2017-01-10 15:12:37 -08:00
evazion
469f48a118 Fix @mention autocomplete for comments & forum posts.
Fix comment autocomplete (broken in 1257639). Also fix forum post
autocomplete (didn't work when editing forum posts).
2017-01-02 12:53:30 -06:00
Albert Yi
eb6746a8a8 additional checks on forum topic visibility 2016-11-07 10:48:04 -08:00
Type-kun
a7d553038f Add "disable-with" to most edit forms (should fix #2264) 2016-08-30 22:54:38 +05:00
Toks
ab799566cd Revert "Show "updated by" message for topic deletion, lock, sticky"
This reverts commit 28057c1555.
2015-08-06 19:57:09 -04:00
Toks
28057c1555 Show "updated by" message for topic deletion, lock, sticky
fixes #1903
2015-08-06 19:45:23 -04:00
r888888888
1d9596d7f2 fixes #2417 2015-06-29 18:17:59 -07:00
r888888888
7754d72a51 hide deleted forum posts in search 2015-06-18 16:41:31 -07:00
Toks
7c2ce325a3 fix #2403, remove unused code 2015-06-08 17:34:13 -04:00
r888888888
2b96040a30 fixes #2191 2014-08-12 17:03:16 -07:00
r888888888
fad0ab7c93 fixes #2133 2014-04-16 17:43:34 -07:00
Toks
59aa45e83b fixes #920 2013-10-09 13:05:06 -04:00
Toks
2db57fc595 Add forum post html class 2013-08-10 13:24:20 -04:00
Toks
11984fe8ed #1902: Add forum/comment creator data 2013-08-07 20:15:35 -04:00
Toks
39a6cca62a fixes #1080 2013-07-07 19:29:24 -04:00
r888888888
6de808bd3b fix forum post views 2013-06-20 16:10:37 -07:00
Toks
e0d75220d1 fixes #1757 2013-06-19 00:22:08 -04:00
Toks
e962f755d6 fixes #1742 2013-06-18 17:00:50 -04:00
Toks
73b5f5c9e2 Merge branch 'inline-editable-posts' 2013-06-14 12:44:18 -04:00
Toks
029c050243 fixes #1424 for forum posts and topics 2013-06-14 12:23:29 -04:00
Toks
05be9f41e7 allow forum posts to be searched by category (#1720) 2013-06-13 23:07:19 -04:00
r888888888
2ac6a03271 fixes #1547 2013-05-31 16:44:33 -07:00
r888888888
fd2b596a18 fixes #1616 2013-05-31 16:39:39 -07:00
Toks
fcd450b2fd fixes #1609 2013-05-12 13:52:26 -04:00
Toks
adafce0843 fixes #1564 2013-05-07 16:06:50 -04:00
r888888888
d5f575159f rename references of privileged to gold 2013-04-28 00:04:52 -07:00
Toks
3ef06e555b fixes #1118 2013-04-22 22:03:48 -04:00
Toks
7c51a7daa8 more consistent forum post deletion confirmation 2013-04-22 21:55:56 -04:00
Toks
0b9fa0ab1b fixes #1400 2013-04-21 15:59:09 -04:00
r888888888
9372219434 fixes #1205 2013-04-18 12:24:01 -07:00
Toks
8b33cac661 replace old user links with new format 2013-04-04 23:16:28 -04:00
Toks
4f42ab8bdb adds support for user level-dependent classes
all links to users should have their class attribute set to that user's
level_class
2013-03-30 12:04:58 -04:00
albert
8bfd7b408f remove links that are not usable by anon users, fixes #977 2013-03-22 10:18:05 -07:00
小太
1a03a86592 Kill trailing whitespace in erb files 2013-03-19 23:11:58 +11:00
albert
ec8da9c92b fixes #933 2013-03-18 09:36:04 -07:00
albert
04b18abc6e style updates 2013-03-17 23:48:06 -04:00
albert
458c0b384a fixes #820 2013-03-10 15:06:11 -04:00
albert
442b411b62 fixes #695 2013-03-02 21:31:12 -05:00
albert
00934a1e13 edit link for original forum post goes to edit topic action 2013-02-25 09:39:27 -05:00
albert
d754d85bdb fixes #602 2013-02-23 21:02:06 -05:00
albert
d113f0f068 remove quote link on single forum posts 2013-02-22 15:59:18 -05:00