rDrama/files/helpers
TLSM c519a1a292 fix: filtered posts on frontpage listing
Desired behavior for new posts when FilterNewPosts setting is enabled
is that people with admin_level >= 2 and post authors should see their
post on the frontpage, while all other unprivileged users shouldn't.

The logic for this is already in `files.helpers.listing` but it was
overridden by a second filter condition which required `state_mod =
VISIBLE`.

`(state_mod = VISIBLE | author_id = v.id) & (state_mod = VISIBLE)`
simplifies in an unfortunate way. The latter condition was also not
conditional on admin_level. Simply removing it fixes the listing
for both post authors and privileged users.
2023-07-20 21:41:29 -05:00
..
config post scheduling (#554) 2023-03-29 16:32:48 -05:00
alerts.py Rejigger the Mod/Report state system. 2023-07-01 21:06:40 -05:00
assetcache.py assetcache: add interface for non-Jinja consumers. 2022-08-30 16:23:09 -04:00
caching.py post scheduling (#554) 2023-03-29 16:32:48 -05:00
captcha.py captcha: add captcha to contact page (fixes #482) 2023-02-09 10:41:15 -06:00
comments.py Rejigger the Mod/Report state system. 2023-07-01 21:06:40 -05:00
content.py simplify visibility states using the new visstates 2023-07-13 14:13:13 -05:00
contentsorting.py post scheduling (#554) 2023-03-29 16:32:48 -05:00
embeds.py post scheduling (#554) 2023-03-29 16:32:48 -05:00
get.py perms: consistently use >= for admin levels 2023-04-06 07:36:19 -06:00
jinja2.py Rejigger the Mod/Report state system. 2023-07-01 21:06:40 -05:00
lazy.py post scheduling (#554) 2023-03-29 16:32:48 -05:00
listing.py fix: filtered posts on frontpage listing 2023-07-20 21:41:29 -05:00
math.py Implement mod-viewable janitor-generated badness stats. 2023-04-30 02:08:07 -05:00
media.py videos: remove video uploads lol 2023-02-17 21:26:40 -06:00
sanitize.py removes a line that broke hard line brakes intentionally to fix Markdown implementation fails to produce hard line breaks properly #440 (#591) 2023-07-13 12:16:40 -05:00
security.py post scheduling (#554) 2023-03-29 16:32:48 -05:00
services.py Split notification routes, hard wrap, sort order 2023-07-12 00:24:50 -05:00
strings.py post scheduling (#554) 2023-03-29 16:32:48 -05:00
time.py post scheduling (#554) 2023-03-29 16:32:48 -05:00
validators.py post scheduling (#554) 2023-03-29 16:32:48 -05:00
volunteer_janitor.py Implement mod-viewable janitor-generated badness stats. 2023-04-30 02:08:07 -05:00
wrappers.py post scheduling (#554) 2023-03-29 16:32:48 -05:00