Commit graph

1677 commits

Author SHA1 Message Date
freamon
7e77c0728d Revert to always preferring incoming Markdown over HTML
Due to issues with spoiler format for Lemmmy and Fediverse links for MBIN (#327)
2024-09-25 01:09:28 +00:00
freamon
8437154f48 Regex embedded mp4/webm/mp3 files out of <img> and into <video> or <audio> tags 2024-09-24 22:20:35 +00:00
rimu
7b4cdaf30c only vote privately with untrusted instances 2024-09-24 12:04:29 +12:00
rimu
b0e478b335 change instance settings #255 2024-09-24 11:33:49 +12:00
rimu
8fcd4c7de7 list trusted instances 2024-09-24 09:36:19 +12:00
rimu
7e4163db6b limit access to voting data 2024-09-24 09:28:06 +12:00
rimu
705de82714 only show Voting Activity link if logged in 2024-09-24 09:08:54 +12:00
freamon
db250b6aeb Add option for admins to kick remote subscribers from local communities
(unsubscribe without ban, typically because their instance is dead)
2024-09-23 15:06:37 +00:00
freamon
2de2f9ed2d API: add post/save and comment/save routes (aka bookmarks) 2024-09-23 12:40:27 +00:00
rimu
990b7250cb Merge remote-tracking branch 'origin/main' 2024-09-23 12:09:02 +12:00
rimu
a97ff0cdbd refresh packages based on requirements.txt when deploy.sh is run 2024-09-23 12:08:47 +12:00
freamon
e6f3bd6fb4 Add pages for admins and community mods to see voting activity 2024-09-22 22:55:47 +00:00
freamon
6413490cc3 Revert earlier decision to only send out HTML (pls see app/utils.py line 327) 2024-09-22 13:45:03 +00:00
freamon
506becc41c API: fix for queries by community name 2024-09-22 13:44:50 +00:00
rimu
ea1564cc87 Merge remote-tracking branch 'origin/main' 2024-09-22 22:05:45 +12:00
rimu
3fb7470f33 lazy load streamable and redgifs 2024-09-22 22:05:21 +12:00
freamon
646bcdf7be avoid wrapping anchors around existing anchors
(e.g. if raw URL already wrapped by remote PieFed instance)
2024-09-21 22:14:27 +00:00
freamon
bdb201f4d3 Remove safe_mode=True for Markdown2, as most things go straight through allowlist_html, and it mangles code in <code> blocks 2024-09-21 22:14:07 +00:00
freamon
5e2ec8f9d9 Remove last remaining uses of lemmy_markdown_to_html
Everything is now piped through allowlist (except spoiler MD as Lemmy doesn't convert the MD in the contents)
2024-09-21 22:13:52 +00:00
freamon
bb9059bf70 Remove code that added comment from autotl;dr bot to post body (bot was disabled 23/07) 2024-09-21 22:13:35 +00:00
rimu
69ac4f2beb Merge remote-tracking branch 'origin/main' 2024-09-21 13:23:28 +12:00
rimu
5e1f67d162 issues found with sentry 2024-09-21 13:23:14 +12:00
freamon
56a7f65c44 Decrement post.reply_count if reply from local user is deleted 2024-09-20 23:17:21 +00:00
rimu
04412ec035 avoid pendingrollbackerrors by committing more often 2024-09-21 10:54:29 +12:00
rimu
e9594ad646 Merge remote-tracking branch 'origin/main' 2024-09-21 10:15:39 +12:00
rimu
700b1c98de better instance failure detection 2024-09-21 10:15:25 +12:00
freamon
1e06b42099 Add inital routes for API (with minimal changes to main codebase) 2024-09-20 16:06:08 +00:00
rimu
37d3501136 Merge remote-tracking branch 'origin/main' 2024-09-17 09:47:43 +12:00
rimu
b3ef7cc106 recalculate_post_stats when viewing profile 2024-09-17 09:47:31 +12:00
freamon
6e4b65b4bc Bugfix to correct post.score and post_vote.effect values 2024-09-16 13:16:14 +00:00
rimu
8b52d33739 replace requests with httpx #15 2024-09-15 19:32:42 +12:00
rimu
e616ce122f replace requests with httpx #15
better thread safety
2024-09-15 19:30:45 +12:00
rimu
d0cbf592ea tweaks #323 2024-09-14 15:50:23 +12:00
rimu
77ce3020fd Merge pull request 'Adding a pre-load communities function to the admin area' (#323) from JollyDevelopment/pyfedi:jollydev/community-pre-load-function into main
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/323
2024-09-14 03:20:07 +00:00
Alan Roberts
e1d7a117ef updated user message 2024-09-13 14:08:32 -04:00
Alan Roberts
1e03afe36e adding a size check on amount of communities requested 2024-09-13 14:04:04 -04:00
Alan Roberts
8fca0b7aca comment clean up 2024-09-13 13:02:17 -04:00
Alan Roberts
56b7621fac adjusting the return for the view 2024-09-13 12:49:10 -04:00
Alan Roberts
8eb34ac4d2 changing referrer check 2024-09-13 11:44:37 -04:00
Alan Roberts
859edac084 passing user.id rather than the user directly 2024-09-13 11:34:14 -04:00
Alan Roberts
6b72b9cb64 adding a way to pass a user to do_subscribe 2024-09-13 11:26:00 -04:00
Alan Roberts
cf5bb65a9f making do_subscribe a celery task, messages to user updates 2024-09-13 11:10:10 -04:00
Alan Roberts
cf2400e5d5 work to make the num of communities user configurable 2024-09-13 10:26:07 -04:00
Alan Roberts
f00a9b2722 initial pass at the subscribe step 2024-09-13 10:26:07 -04:00
Alan Roberts
badf4cddba got the top 25 sorting for pre-load function to work 2024-09-13 10:26:07 -04:00
Alan Roberts
3838ad5701 Adding a pre-load of threadiverse communities to the admin area 2024-09-13 10:26:07 -04:00
rimu
6970f15e4c typo 2024-09-13 16:48:39 +12:00
rimu
740c42daea refactor voting code to enable api development #13 2024-09-13 16:39:42 +12:00
rimu
30dedd19c5 show stats on user profile 2024-09-13 11:21:42 +12:00
rimu
51f2b3e40e track user statistics like post count 2024-09-13 11:08:04 +12:00