Commit graph

257 commits

Author SHA1 Message Date
freamon
ec91e6c7d2 Bugfix for posts with empty attachments 2024-11-30 14:20:19 +00:00
rimu
73f0ff35f4 a.gup.pe images - attached to notes as a dict 2024-11-30 21:36:42 +13:00
rimu
dd93048e96 temporary instance bans 2024-11-30 09:50:14 +13:00
freamon
5b85ee06f5 lower() the ap_id paramter for get_by_ap_id() 2024-11-29 16:40:51 +00:00
rimu
c135b9c51f clean up duplicate instances #348 2024-11-24 16:32:22 +13:00
rimu
d2aa9c321d clean up duplicate comments #348 2024-11-24 16:00:53 +13:00
rimu
ff201af0d6 do not create duplicate posts #348 2024-11-24 15:38:51 +13:00
rimu
51fba1a156 merge duplicate posts #348 2024-11-24 15:27:21 +13:00
rimu
d3825b68b5 increase length of ban reason 2024-11-23 18:48:03 +13:00
rimu
f9d8ac555a Merge remote-tracking branch 'origin/main' 2024-11-19 18:54:45 +13:00
rimu
a5656c3318 merge duplicate communities #348 2024-11-19 18:54:33 +13:00
freamon
5e422131ad Prefer image in attachment for image posts #350 2024-11-17 22:14:39 +00:00
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