Commit graph

245 commits

Author SHA1 Message Date
freamon
594b858bd4 Use http instead of https for viewing images if SERVER_NAME is 127.0.0.1 2024-11-17 19:45:01 +00:00
rimu
d5ae01b456 add index #348 2024-11-15 16:42:08 +13:00
rimu
ffd78bfd80 add unique constraint to user.ap_profile_id and clean up old data 2024-11-14 20:16:09 +13:00
rimu
0b5f515de6 show posts from child topics 2024-11-08 15:09:24 +13:00
rimu
eedaddd851 avoid StaleDataError 2024-11-03 10:47:41 +13:00
rimu
915e8c779a Avoid StaleDataError exception during user.recalculate_attitude() 2024-11-02 16:34:16 +13:00
rimu
21ae50f6ff post licence - save and display 2024-11-02 16:02:29 +13:00
rimu
88d28c1464 post licence model and migration 2024-11-02 15:14:31 +13:00
freamon
57191c2c23 API: utilise DB exceptions for return errors 2024-10-27 13:36:56 +00:00
freamon
d738850fc7 Recalc community.post_reply_count after replies are purged as part of a post purge 2024-10-26 04:46:51 +00:00
freamon
899bf834cd post soft-deletion: delay calling delete_dependencies until a post is purged, to allow for restoration 2024-10-26 03:55:21 +00:00
rimu
5b386ec190 show instance name after display name 2024-10-23 21:35:44 +13:00
rimu
8a1aa648ae daily maintenance: handle exceptions 2024-10-23 08:37:08 +13:00
rimu
156c328c6f tidy up calls to obsolete post_ranking 2024-10-22 19:51:37 +13:00
rimu
42439fb90a Merge branch 'refactor-post-new' 2024-10-21 09:56:20 +13:00
rimu
518f165c1f post-new: image posts 2024-10-20 20:21:30 +13:00
freamon
7983105c58 post-reply soft-deletion: comment out uncalled routine 2024-10-19 17:25:54 +00:00
rimu
feca5992af refactor post-new wip 2024-10-16 21:42:30 +13:00
rimu
ba2a97c4ad deleted_by field - no foreign keys as they were confusing sqlalchemy 2024-10-14 15:48:55 +13:00
rimu
cec844ec4f refactor post-new wip 2024-10-14 15:37:00 +13:00
rimu
377d07a67e deleted_by field on Post, PostReply and User 2024-10-14 12:29:56 +13:00
rimu
c8922cc67f link user profiles to their instances 2024-10-13 10:53:47 +13:00
freamon
cb28b79108 For a.gup.pe groups, send votes to post author instead of to community 2024-10-10 15:39:36 +01:00
rimu
eff0edf817 more reliable youtube thumbnails 2024-10-06 07:03:58 +13:00
rimu
d2327fd3c1 move date humanization out of jinja and into python where exceptions can be handled properly
In the arrow package, Catalan language does not have 'weeks' defined as a way to display datetimes. A PR has been submitted.
2024-09-30 16:34:17 +13:00
rimu
bba8687567 use outer join instead #331 2024-09-30 13:49:06 +13:00
Alan Roberts
9185a56267 adding intercted_at column to read_posts table 2024-09-29 13:18:41 -04:00
Alan Roberts
42df0fe458 comment cleanup 2024-09-29 13:18:41 -04:00
Alan Roberts
ccbc0b4b22 got the relationship working, and the mark_as_read working 2024-09-29 13:18:41 -04:00
Alan Roberts
c59556fab5 adding hide-read-posts setting for user settings 2024-09-29 13:18:41 -04:00
Alan Roberts
08290b0468 Adding a hide-read-posts function 2024-09-29 13:18:41 -04:00
rimu
91def29480 post_reply refactor 2024-09-28 13:05:00 +12:00
freamon
363871241a API: process 'vote reversal' (this should have been committed with the first batch) 2024-09-26 16:00:36 +00:00
rimu
7b4cdaf30c only vote privately with untrusted instances 2024-09-24 12:04:29 +12:00
rimu
04412ec035 avoid pendingrollbackerrors by committing more often 2024-09-21 10:54:29 +12:00
freamon
1e06b42099 Add inital routes for API (with minimal changes to main codebase) 2024-09-20 16:06:08 +00:00
freamon
6e4b65b4bc Bugfix to correct post.score and post_vote.effect values 2024-09-16 13:16:14 +00:00
rimu
e616ce122f replace requests with httpx #15
better thread safety
2024-09-15 19:30:45 +12: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
51f2b3e40e track user statistics like post count 2024-09-13 11:08:04 +12:00
rimu
dd5d90984d typo 2024-09-07 14:15:34 +12:00
rimu
760477f00c use JS IntersectionObserver to lazy load youtube videos 2024-09-07 12:36:21 +12:00
rimu
503f6719ad youtube_embed() without hardcoded character positions
this should be less likely to break if youtube changes the url format
2024-09-07 11:33:20 +12:00
freamon
2e6fb0a592 youtube embed for shorts 2024-09-06 11:28:31 +00:00
rimu
7d276136ed simplify stats code #319 2024-09-06 16:00:09 +12:00
rimu
f284be0b39 Merge pull request 'Adding admin.instances page' (#319) from JollyDevelopment/pyfedi:jollydev/admin-instances-overview into main
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/319
2024-09-06 03:54:04 +00:00
freamon
9e8066bc4e Convert youtu.be links to youtube.com so they embed in post 2024-09-06 01:10:39 +00:00
Alan Roberts
6357b2d3d1 adding comment to explain the sql text call 2024-09-05 13:34:16 -04:00
Alan Roberts
6e3de6e9e2 adding users back in with better query 2024-09-05 13:24:30 -04:00