Commit graph

1631 commits

Author SHA1 Message Date
default
6056077031 Fixed crash when unfollowing. 2022-12-13 16:02:41 +01:00
default
a67a82d545 In server_get_handler(), body must be a dynamic string. 2022-12-13 15:40:59 +01:00
default
17afbbe4b5 Updated RELEASE_NOTES. 2022-12-13 09:20:53 +01:00
default
56ce91eea0 Merge branch 'master' of grunfink-codeberg:grunfink/snac2 2022-12-13 09:19:51 +01:00
grunfink
99c3ec1601 Merge pull request 'Serve robots.txt (disallow all)' (#23) from kensanata/snac2:robots into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/23
2022-12-13 08:18:58 +00:00
default
e09a4051c6 Updated RELEASE_NOTES. 2022-12-13 09:17:53 +01:00
grunfink
1eb5c7a6e2 Merge pull request 'Add docker-compose support' (#22) from tobyjaffey/snac2:docker into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/22
2022-12-13 08:15:52 +00:00
Alex Schroeder
63f02f45c6 Serve robots.txt (disallow all) 2022-12-12 22:11:07 +01:00
Toby Jaffey
4afa513dce Add docker-compose support, so a working development server with HTTPS can be started with:
docker-compose build && docker-compose up
2022-12-12 10:26:38 +00:00
default
aa82e14bc7 Backport from xs. 2022-12-11 10:33:01 +01:00
default
0337c71cf4 Backport from xs. 2022-12-11 09:46:27 +01:00
default
79270abd09 Log the response date in send_to_inbox() errors. 2022-12-11 09:08:12 +01:00
default
8eb2cc7217 Updated TODO. 2022-12-10 19:28:46 +01:00
default
14a516b542 Call pthread_detach() and spawning the purge. 2022-12-10 17:15:26 +01:00
default
bf3cfe24c9 Bumped development version. 2022-12-10 14:49:46 +01:00
default
7336a8ee3e Updated RELEASE_NOTES. 2022-12-10 14:49:26 +01:00
grunfink
1de96f2565 Merge pull request 'Ensure that pd variable stays in scope while curl request runs' (#20) from tobyjaffey/snac2:fix_19 into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/20
2022-12-10 13:35:15 +00:00
Toby Jaffey
4b37678207 Ensure that pd variable stays in scope while curl request runs
Fix for #19
2022-12-10 13:15:29 +00:00
default
2fd7e20380 Use object_likes_len() and object_announces_len() in the post score. 2022-12-10 11:26:51 +01:00
default
83a68d635d New function index_len(). 2022-12-10 11:19:26 +01:00
default
6fd5d14428 In process_queue(), do not retry for 404 or 410 status. 2022-12-10 10:36:31 +01:00
default
32b52bb109 Merge branch 'master' of grunfink-codeberg:grunfink/snac2 2022-12-09 18:49:44 +01:00
grunfink
16a7fc0b25 Merge pull request 'Makefile improvements' (#18) from CyberTaIlor/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/18
2022-12-09 17:49:07 +00:00
default
1b73c542a9 Backport from xs. 2022-12-09 18:43:31 +01:00
Anna “CyberTailor”
9858d27818
Makefile improvements
* Don't overwrite CFLAGS from env
* Respect CPPFLAGS and LDFLAGS
* Create bindir in "install"
2022-12-09 21:07:50 +05:00
default
6087b4540d Version 2.14 RELEASED. 2022-12-09 16:39:45 +01:00
default
b2562af8f3 Updated documentation. 2022-12-08 10:14:07 +01:00
default
e2e533cfde Updated RELEASE_NOTES. 2022-12-08 10:13:00 +01:00
default
e39a6d343a Updated RELEASE_NOTES. 2022-12-08 10:00:43 +01:00
default
5c6d44cdbc Added support for /.well-known/nodeinfo. 2022-12-08 09:58:47 +01:00
default
0a0896b77b Updated TODO. 2022-12-08 08:46:38 +01:00
default
0d881424df Updated RELEASE_NOTES. 2022-12-08 08:46:07 +01:00
default
5e837aa57b Don't show the 'Boost' button for private messages. 2022-12-08 08:45:35 +01:00
default
f62e015dd2 Updated TODO. 2022-12-08 08:42:04 +01:00
default
a6c70ce4c0 Updated RELEASE_NOTES. 2022-12-08 08:40:58 +01:00
default
3d9254cece Updated RELEASE_NOTES. 2022-12-08 08:32:01 +01:00
default
3dd9d9bf42 Updated RELEASE_NOTES. 2022-12-08 08:20:57 +01:00
default
cef10f5678 Added level of debug for 'Delete' messages. 2022-12-08 08:19:24 +01:00
default
2dba85ead2 Also add 'redir' hidden field to Replies. 2022-12-08 08:04:18 +01:00
default
a1673e6d0c Some tweaks to improve the page position after like or boost. 2022-12-08 07:40:15 +01:00
default
a5b8dd7841 Wrapped too long string literals. 2022-12-08 07:21:19 +01:00
default
4159e41440 Updated RELEASE_NOTES. 2022-12-08 07:15:41 +01:00
default
8222776ff9 Little tweak to previous change to avoid a memleak. 2022-12-08 07:08:53 +01:00
grunfink
7565b8f397 Merge pull request 'Fix mentions with one @ sign' (#16) from kensanata/snac2:fix-mention-with-one-at-sign into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/16
2022-12-08 06:03:52 +00:00
Alex Schroeder
4c996c7622 Fix mentions with one @ sign
In a mention like the following, the old code had a problem: It would
split the name by '@' and get a list of two elements. Since this is
less than three, it would then try to get the domain name from the
href ("social.alexschroeder.ch") and concatenate it with the name,
resulting in "alex@social.alexschroeder.ch@social.alexschroeder.ch".
The reason was that the code expects an initial "@". In that case,
splitting "@alex@social.alexschroeder.ch" would result in three
elements, and no domain name guessing would happen. If, on the other
hand, the name was "@foo" then finding the domain name in the URL and
appending it so that you get @foo@domain.name is the correct solution.

    "tag": [
        {
            "type": "Mention",
            "href": "https://social.alexschroeder.ch/alex",
            "name": "alex@social.alexschroeder.ch"
        }
    ],

The fix consists in prepending an "@" if the name does not start with
"@" and leaving the rest of the code unchanged.
2022-12-07 22:03:32 +01:00
default
df1b1510b7 Ask for just 1 more entry beyond the current page to test if there are more. 2022-12-07 10:42:24 +01:00
default
979389fd47 Fixed last minute typo. 2022-12-07 10:12:59 +01:00
default
28816aaa85 Minor tweaks to paged timeline output. 2022-12-07 10:04:19 +01:00
grunfink
060a9fcb3c Merge pull request 'Pagination of the private and public page' (#13) from kensanata/snac2:pagination into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/13
2022-12-07 08:33:09 +00:00
default
4726de661b Fixed memory leak. 2022-12-06 19:28:29 +01:00