Commit Graph

611 Commits

Author SHA1 Message Date
Julian Lam
9608cce693 refactor: emoji replacement code into helper function, remove use of regex on untrusted user input 2026-02-11 11:50:27 -05:00
Barış Uşaklı
c65af19985 refactor: add createFieldChecker (#13973)
* refactor: add createFieldChecker

* refactor: use hasField in topic/data.js

* refactor: use hasField in categories/data.js

* test: fix category nickname logic

* test: fix spec
2026-02-11 11:38:03 -05:00
Julian Lam
0fbaa937e4 Refactor /world page, closes #13927 (#13954)
* refactor: wholesale UI/data refactor of world to display in feed-like format

* fix: openapi schema

* fix: remove console log

* fix: restrict 'generatedTitle' from being passed-in via topics API

* fix(deps): bumping themes for world refactor support

* fix: /world title and description update

* fix: missing handleIgnoreWatch in world client side js
2026-02-06 14:07:25 -05:00
Barış Soner Uşaklı
a8a1089eda fix: closes #13953, show uid pic in post queue notification 2026-02-06 09:03:59 -05:00
Barış Soner Uşaklı
30541a9693 feat: show bodyLong in notifications, closes #4767
dont show blockquotes
show post content in flag notification
2026-02-05 14:08:31 -05:00
Barış Soner Uşaklı
5c15a0db7d Merge branch 'master' into develop 2026-01-25 19:45:31 -05:00
Barış Soner Uşaklı
f98de3e985 fix: closes #13899 2026-01-25 19:45:23 -05:00
Barış Soner Uşaklı
07d1f22401 refactor: get rid of global.env, use process.env.NODE_ENV 2026-01-21 20:14:15 -05:00
Julian Lam
0c75934adf fix: #13889, custom emoji from Piefed 2026-01-13 11:25:18 -05:00
Julian Lam
097d0802b7 feat: stop extraneous vote and tids_read data from being saved for remote users 2025-12-11 10:57:00 -05:00
Julian Lam
30b1212a0a fix: relax toPid assertion checks so that it only checks that it is a number or uri 2025-10-29 15:18:19 -04:00
Julian Lam
f6219d0026 fix: update logic so that purging a post does not remove toPid fields from children, updated addParentPosts so that post existence is checked 2025-10-29 15:18:19 -04:00
Julian Lam
af5efbd71d fix: regression caused by d3b3720915 2025-10-14 11:21:39 -04:00
Barış Soner Uşaklı
6c2100684b fix: crash in tests 2025-10-11 20:54:00 -04:00
Julian Lam
d3b3720915 refactor: move post attachment handling directly into posts.create 2025-10-09 13:58:08 -04:00
Julian Lam
93b6cb5984 feat: federate Delete on post delete as well as purge, topic deletion federates Announce(Delete(Object)) 2025-10-06 13:45:46 -04:00
Barış Soner Uşaklı
9d4a9b83cc fix: closes #13624, update post fields before schedule code
tldr when reschedule was called it was still using the timestamp in the future when adding to cid:<cid>:pids causing that post to get stuck at the top of that zset, which led to the bug in this issue
2025-08-29 21:02:14 -04:00
Barış Soner Uşaklı
e79dfeb7c3 fix: rare crash if queued item is no longer in db but id is in post:queue 2025-08-26 13:56:47 -04:00
Barış Soner Uşaklı
076cc9e868 lint: remove unused url 2025-08-13 17:36:55 -04:00
Julian Lam
06c3824740 fix: regression caused by cc6fd49c4d 2025-08-13 14:41:44 -04:00
Julian Lam
cc6fd49c4d fix: protocol-relative URLs being accidentally munged, #13592 2025-08-13 10:01:05 -04:00
Barış Uşaklı
24e7cf4a00 refactor: move post uploads to post hash (#13533)
* refactor: move post uploads to post hash

* test: add uploads to api definition

* refactor: move thumbs to topic hash

* chore: up composer

* refactor: dont use old zset
2025-07-07 10:22:24 -04:00
Barış Uşaklı
4fbcfae8b1 Post queue write api (#13473)
* move post queue from socket.io to rest api

* move harmony post-queue to core

add canEdit, allow users to edit their queued posts

* fix: openapi spec

* lint: whitespace
2025-06-05 07:15:45 -04:00
Barış Soner Uşaklı
ebb88c1277 feat: add action:post-queue.save
fires after a post is added to the post queue
2025-05-30 11:45:04 -04:00
Julian Lam
61f6806b6a test: a few additional tests for announce handling 2025-05-14 11:49:12 -04:00
Julian Lam
df5c1a938d breaking: removal of filter:post.purge 2025-05-06 13:38:42 -04:00
Julian Lam
c84b72fb37 breaking: removal of filter:post.purge 2025-05-06 13:38:42 -04:00
Julian Lam
b433848971 fix: #13374, updates to posts.edit to handle remote content updates better 2025-05-06 10:45:09 -04:00
Barış Soner Uşaklı
c93dc5897a refactor: break long line 2025-04-04 11:47:24 -04:00
Barış Soner Uşaklı
c41c7e8a03 fix: posts.uploads.usage since paths changed 2025-04-04 11:04:09 -04:00
Barış Soner Uşaklı
3ad6ee075b Thumb uploads/post uploads normalization (#13300)
* testing thumn/post upload refactor

* fix: isOrphan check

* lint: fix md5

* test: fix upload test

* user

* fix: upgrade script

* refactor: long line

* lint: lint

* test: fix tests

* Squashed commit of the following:

commit cd70e6c610
Author: Barış Soner Uşaklı <barisusakli@gmail.com>
Date:   Fri Apr 4 09:24:54 2025 -0400

    fix: req.body can be undefined

* refactor: show data on test fail

* test: logs

* test: change test

* make sure timestamps are different
2025-04-04 10:45:05 -04:00
Julian Lam
44354dac5e fix: handling of href in remote object attachments, #13169 2025-03-07 14:18:09 -05:00
Barış Soner Uşaklı
1a7250b508 Merge branch 'master' into develop 2025-02-23 10:25:58 -05:00
Barış Soner Uşaklı
e9d4c7b97e fix: summary post parse 2025-02-23 10:25:53 -05:00
Barış Soner Uşaklı
97928b67e7 Merge branch 'master' into develop 2025-02-23 10:21:56 -05:00
Barış Soner Uşaklı
ad92e93129 fix: add sourceContent to getPostSummaryByPids
ap posts wasnt showing any content in mobile navigator
2025-02-23 10:21:47 -05:00
Barış Soner Uşaklı
8c6bfa95e4 Merge branch 'master' into develop 2025-02-18 11:43:52 -05:00
Julian Lam
92708d2f6b fix: #13170, remove mime-type and regex test for "Emoji" attachment, wrap tag name in colons if not provided 2025-02-18 10:58:04 -05:00
Julian Lam
b6918267a1 Merge branch 'master' into develop 2025-02-16 15:00:41 -05:00
Julian Lam
33d7b9b3ab fix: clear parsed post cache when updating a post's attachments, #13164 2025-02-16 14:48:44 -05:00
Barış Soner Uşaklı
fde5e57e6d Merge branch 'master' into develop 2025-02-11 13:45:46 -05:00
Barış Soner Uşaklı
70a9f6d337 fix: return null if field isn't in hash 2025-02-11 13:37:21 -05:00
Barış Soner Uşaklı
3b7b32e228 Merge branch 'master' into develop 2025-02-06 19:23:57 -05:00
Barış Soner Uşaklı
d687f0810c fix: #13135, tids are not numeric for ap topics
this fixes other issues like posts not disappearing when purged and many others
2025-02-06 19:12:32 -05:00
Barış Soner Uşaklı
96a1ebdfec Merge branch 'master' into develop 2025-02-06 14:38:28 -05:00
Barış Soner Uşaklı
c2f7754ae0 Post/parent (#13133)
* post.parent wip

* feat: post parent

handle delete/restore/purge privileges etc.

* remove whitespace

* fix: this in each

* lint

* up harmony fix text break
2025-02-06 14:37:50 -05:00
Julian Lam
f64e6f0f1a refactor: Posts.relativeToAbsolute so that the regexes passed to it no longer need a pre-defined length, it is now calculated from the match result, added new regex for markdown image/anchors 2025-01-29 11:55:38 -05:00
Julian Lam
b386e4a66e feat: introduce new 'markdown' post parsing type, closes #13077 2025-01-23 14:52:14 -05:00
Julian Lam
cfeb49ddd9 fix: post upload sync duplication bug 2025-01-08 12:06:56 -05:00
Julian Lam
b537437c78 feat: save audience into post hash (for remote posts) 2024-12-24 11:17:22 -05:00