evazion
5cb7167a45
ip bans, user feedbacks: fix links to bans page in secondary links.
2020-03-24 00:39:22 -05:00
evazion
0ad5619484
pundit: add missing authorize calls.
2020-03-24 00:38:07 -05:00
evazion
4a5bec71f6
signup: don't send welcome emails to invalid addresses.
...
Fix attempting to send welcome emails when user didn't provide a valid
email address.
2020-03-24 00:26:47 -05:00
evazion
e79910431f
emails: validate that email addresses are deliverable.
...
Reject email addresses that known to be undeliverable during signup.
Some users signup with invalid email addresses, which causes the welcome
email (which contains the email confirmation link) to bounce. Too many
bounces hurt our ability to send mail.
We check that an email address is undeliverable by checking if the
domain has a mail server and if the server returns an invalid address
error when attempting to send mail. This isn't foolproof since some
servers don't return an error if the address doesn't exist. If the
checks fail we know the address is bad, but if the checks pass that
doesn't guarantee the address is good. However, this is still good
enough to filter out bad addresses for popular providers like Gmail and
Microsoft that do return nonexistent address errors.
The address existence check requires being able to connect to mail
servers over port 25. This may fail if your network blocks port 25,
which many home ISPs and hosting providers do by default.
2020-03-23 23:45:18 -05:00
evazion
a45c7f46be
Interlink bans, ip bans, and user feedbacks pages.
...
* Make the bans, ip bans, ip addresses, and user feedbacks pages all
link to one another in the secondary links.
* Add quick search bars to the secondary links on these pages.
2020-03-23 01:48:59 -05:00
evazion
c24ae0a2a6
ip addresses: add secondary links.
2020-03-23 01:48:59 -05:00
evazion
f23df47c09
ip addresses: add ip address show page.
...
* Add IP address show page at /ip_addresses/1.2.3.4.
* Add "Details", "Ban IP", "Ban User" options to the /ip_addresses listing.
2020-03-23 01:48:59 -05:00
evazion
13dab1510c
ip addresses: add ip lookup api client.
2020-03-23 01:48:59 -05:00
evazion
6a0799fec0
posts: allow approvers to see uploader names.
2020-03-22 15:25:45 -05:00
evazion
8492979ecb
post policy: fix typo in is_note_locked.
2020-03-21 23:21:16 -05:00
evazion
f464163885
users: allow all users to use the posts per page setting.
2020-03-21 23:06:50 -05:00
evazion
88a8f459ed
comments: remove 10 comment votes per hour limit.
2020-03-21 23:06:47 -05:00
evazion
63f7311489
comments: allow new users to comment.
...
Remove the rule that users less than a week old can't leave comments.
2020-03-21 23:06:47 -05:00
evazion
aefbed57b8
pools: allow new users to remove posts from pools.
...
Remove the rule that users less than a week old can't remove posts from
pools.
2020-03-21 23:06:47 -05:00
evazion
92e4635af8
ip addresses: fix reference to CurrentUser inside visible.
2020-03-21 23:06:42 -05:00
evazion
94aff2c777
moderation reports: pass CurrentUser to visible explicitly.
...
This is for consistency with how `visible` works in other models.
2020-03-21 23:06:42 -05:00
evazion
2445e8b82f
favorites: convert user.hide_favorites? to pundit.
2020-03-21 23:06:42 -05:00
evazion
5bc82bf07b
users: remove user is not ip banned validation.
...
This is handled on the controller level now.
2020-03-21 23:06:42 -05:00
evazion
b21e1d219c
users: remove as_admin and as_current methods.
2020-03-21 23:06:42 -05:00
evazion
94d78287eb
bulk update request pruner: fix forum posts reference.
2020-03-21 23:06:42 -05:00
evazion
e4d63eb0da
post versions: fix index action when no versions exist.
...
Fix a nil dereference error during testing when no post versions exist.
2020-03-21 23:06:42 -05:00
evazion
41ab3c9f63
post versions: fix undo action.
2020-03-21 23:06:42 -05:00
evazion
94ae10b1a6
tests: fix post and pool version tests helpers.
...
* Fix the pool version SQS service to always be mocked before every
test. Before we had to manually set it up before every test dealing
with pool versions.
* Fix it so that we reconnect to the post/pool version databases before
every test. Before using $ARCHIVE_DATABASE_URL to set the database url
failed because environment variables weren't loaded by dotenv yet when
connections were first established.
2020-03-21 19:28:10 -05:00
evazion
d775c625bb
application controller: remove role_only! methods.
2020-03-20 18:03:50 -05:00
evazion
79e7b9308e
pundit: convert misc privilege checks in views to pundit.
2020-03-20 18:03:50 -05:00
evazion
7f742242e4
pundit: convert uploads to pundit.
2020-03-20 18:03:01 -05:00
evazion
d51b0dfe17
pundit: convert moderator/post/posts to pundit.
2020-03-20 18:03:01 -05:00
evazion
1344d4c161
pundit: convert moderator/dashboard to pundit.
...
Make it visible to everyone since there's no non-public information here.
2020-03-20 18:03:01 -05:00
evazion
a5418abb31
pundit: convert posts to pundit.
2020-03-20 18:03:01 -05:00
evazion
dd39913e55
pundit: convert post replacements to pundit.
2020-03-20 18:03:01 -05:00
evazion
3bb3c0b990
pundit: convert saved searches to pundit.
2020-03-20 18:03:01 -05:00
evazion
415d9591c5
pundit: convert post votes to pundit.
...
Side effects:
* The data-current-user-is-voter <body> attribute has been removed.
* {{upvote:self}} no longer works. {{upvote:<name>}} should be used instead.
2020-03-20 18:03:01 -05:00
evazion
33d81d0d1b
pundit: convert post flags to pundit.
2020-03-20 18:03:01 -05:00
evazion
ffae64f127
pundit: convert post versions to pundit.
2020-03-20 18:03:01 -05:00
evazion
ba0a5dda8a
pundit: convert post disapprovals to pundit.
2020-03-20 18:03:01 -05:00
evazion
84c654464d
pundit: convert post approvals to pundit.
2020-03-20 18:03:01 -05:00
evazion
cbee23f9ad
pundit: convert post appeals to pundit.
2020-03-20 18:03:01 -05:00
evazion
ab5432d149
pundit: convert pools to pundit.
2020-03-20 18:03:01 -05:00
evazion
83eae1bf11
pundit: convert passwords to pundit.
2020-03-20 18:03:01 -05:00
evazion
62835ac9fc
pundit: convert notes to pundit.
2020-03-20 18:03:01 -05:00
evazion
2c4c29b81a
pundit: convert favorite groups to pundit.
2020-03-20 18:03:01 -05:00
evazion
50fa674a3e
pundit: convert emails to pundit.
2020-03-20 18:03:01 -05:00
evazion
a440c56ed8
pundit: convert comment votes to pundit.
2020-03-20 18:03:01 -05:00
evazion
ce1133dd69
pundit: convert artist commentaries to pundit.
2020-03-20 18:03:01 -05:00
evazion
3d83c3154e
pundit: convert forum topic visits to pundit.
2020-03-20 18:03:01 -05:00
evazion
f1f489c40b
pundit: convert favorites to pundit.
2020-03-20 18:03:01 -05:00
evazion
cc2b4abd09
pundit: convert forum post votes to pundit.
2020-03-20 18:03:01 -05:00
evazion
be59e85d25
pundit: convert ip addresses to pundit.
2020-03-20 18:03:01 -05:00
evazion
92aeb8728f
pundit: convert ip bans to pundit.
2020-03-20 18:03:01 -05:00
evazion
9242bf522b
pundit: convert moderation reports to pundit.
2020-03-20 18:03:01 -05:00