Commit graph

2149 commits

Author SHA1 Message Date
default
381a2f5b7b Use xs_json_load() in some places. 2023-08-05 14:50:20 +02:00
default
d8f2bb1128 Partial import of xs_json_load() from xs. 2023-08-05 14:44:25 +02:00
default
294675ae9a Moved avatars to artwork/. 2023-08-04 19:16:09 +02:00
default
f67ce8f333 [susie.utf-8] New file. 2023-08-04 19:14:43 +02:00
default
f5a3dbf8d6 Use xs_json_dump_pp() wherever possible. 2023-08-03 09:02:08 +02:00
default
2137d2f133 Backport from xs. 2023-08-03 08:42:38 +02:00
default
d455280705 Fixed a log message level. 2023-08-02 09:42:51 +02:00
default
34adb67059 Updated RELEASE_NOTES. 2023-08-02 09:07:23 +02:00
default
a3226b5b7a Don't redir to 'snac-posts', now that the top page is smaller. 2023-08-02 08:47:57 +02:00
default
4d18ed9850 Bumped version. 2023-08-02 08:43:47 +02:00
default
18846477de Updated TODO. 2023-07-29 15:29:35 +02:00
default
368b1eb452 Fixed outbox to be an OrderedCollection of Create+Note, not Note. 2023-07-29 15:29:11 +02:00
default
7c393ef436 Merge branch 'master' of triptico.com:git/snac2 2023-07-29 15:19:59 +02:00
default
751eb0586a msg_create() is of type @wrapper.
This means that it also generate the same id for the same Note.
2023-07-29 15:19:52 +02:00
default
78f70427dd Updated TODO. 2023-07-28 20:23:38 +02:00
default
0f8c0cd694 Updated comment in headers. 2023-07-28 11:34:18 +02:00
grunfink
b22786bd55 Merge pull request 'html.c: Fix non-list tag object for external custom emoji' (#77) from yonle/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/77
2023-07-26 06:13:55 +00:00
Yonle
b2a274df76 html.c: Fix non-list tag object for external custom emoji
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-26 06:10:08 +00:00
default
52d3b5c8db Call fflush() after admin prompts without newlines. 2023-07-26 06:40:23 +02:00
default
ede2a38b2b If an image has no description, try the post 'name' field. 2023-07-25 12:36:04 +02:00
default
085c5a545a Simplified attachment iteration in HTML rendering. 2023-07-25 12:31:42 +02:00
default
e6baeadf5f Allow the 'attachment' field of a post to be single object instead of a list.
It seems that Gotosocial does this.
2023-07-25 12:01:42 +02:00
default
2ee74c9a6a Added a 'Back to top' link at the end of the page. 2023-07-24 20:51:24 +02:00
default
4af95579dc Deleted a comment that is no longer true. 2023-07-24 20:44:21 +02:00
default
e428b57865 Improved Accept + implicit Follow code. 2023-07-24 20:44:00 +02:00
default
dc5c1ce0ac Added support for Accept objects that only provide an object id.
This allows following Guppe groups.
2023-07-24 20:37:31 +02:00
grunfink
1882c25a17 Merge pull request 'Major rollback & Put "User Settings" outside of "Operations...."' (#76) from yonle/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/76
2023-07-24 16:16:14 +00:00
Yonle
3c1dc419ea html.c: Put "User Settings" outside of "Operations".
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-24 23:13:13 +07:00
Yonle
25bb8f0dd2 Rollback to 86f507410b for some reasons.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-24 22:56:18 +07:00
grunfink
34963e0abc Merge pull request 'Web Client: Do not hard link on <a> element' (#75) from yonle/snac2:nohardlink into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/75
2023-07-24 14:00:35 +00:00
Yonle
e776bf7e2c html.c: Rollback to e9adaa1f7a, Put "User Settings..." outside of "Operations..."'s <details> element
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-24 20:42:26 +07:00
Yonle
68d03d6d51 html.c: No need to redirect to #snac-posts again.
Form has been minimized with <details> since commit c409d2e,
So there is no need to redirect user to user/admin#snac-posts again.

Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-24 20:15:40 +07:00
Yonle
75e061a9f7 html.c & httpd.c: Fix hardlink.
Some people may still want to post in the web client with such different
way, Such as posting from Yggdrasil / SSH port forwarder, and so on.

This commit gives the workaround for that purpose, However things will
go messed up when current path were ends with / (Like: user/, admin/).

But overall, If user just uses it like normal, Then things will just
worked well as expected.

Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-24 19:42:20 +07:00
default
4003883176 Updated RELEASE_NOTES. 2023-07-24 13:37:29 +02:00
default
e95d422be3 Bumped version. 2023-07-24 13:36:42 +02:00
default
f67ac2517c Moved user settings to its own page. 2023-07-24 13:31:13 +02:00
default
86f507410b Updated documentation. 2023-07-24 13:01:19 +02:00
default
ca0262f6b2 Updated CSS in utils.c. 2023-07-24 12:55:56 +02:00
default
f23d2c05ab Fixed minor memory leak. 2023-07-24 12:52:09 +02:00
grunfink
ad4fccd60d Merge pull request 'Allow several tags & fix video element width, and more.' (#74) from yonle/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/74
2023-07-24 10:49:18 +00:00
default
a940d146ae Fixed link in README. 2023-07-23 16:31:16 +02:00
Yonle
ae1f0ac334 default css: handle overflow text
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-23 20:50:45 +07:00
Yonle
7710ca76a0 format.c: Encode all HTML characters when we're in pre element until we are out.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-23 20:20:15 +07:00
Yonle
5672fe2cc6 format.c: Allow several tags
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-23 14:55:06 +07:00
Yonle
11aafbc46f default css: Set max width for video attachment
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-21 11:32:24 +07:00
default
4823f20085 If a message has an audience, its URL is shown after the content.
Messages coming from channels, communities (Lemmy) or magazines (kbin.social),
have this field set with the "parent" url.
2023-07-19 12:42:32 +02:00
default
7950783d41 Merge branch 'master' of grunfink-codeberg:grunfink/snac2 2023-07-19 11:58:22 +02:00
grunfink
b5eb51c4ab Merge pull request '[Really optional PR?] html.c / UX: Give admin page more space & other...' (#71) from yonle/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/71
2023-07-19 09:58:08 +00:00
Yonle
7e273a73eb html.c: RSS: fix.
Feed title, and description is not properly rendered.
So here goes a fix that instead of using encode_html TWICE,

We use sanitize() for feed description instead.

Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-18 23:34:29 +07:00
Yonle
d3e0f7a84b html.c: custom emoji <img>: Resize height to 2em, and put veritcal-align to middle.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-18 21:16:22 +07:00