Commit graph

2968 commits

Author SHA1 Message Date
default
96576d2c5d On unfollow, also delete from the pending follow list. 2024-11-24 08:46:26 +01:00
default
129049edf4 New function pending_check() and pending_del(). 2024-11-24 08:37:19 +01:00
default
b91177cb46 New function pending_get() and pending_list(). 2024-11-24 08:31:01 +01:00
default
7287776fd1 New function pending_add(). 2024-11-24 08:17:38 +01:00
default
35b35ec3af Return the 'manuallyApprovesFollowers' actor field according to user configuration. 2024-11-24 08:03:51 +01:00
default
36c3030231 In user_persist(), only publish the actor to the world if a relevant field has changed.
This way, changing user preferences does not trigger an automatic send storm.
2024-11-23 17:33:49 +01:00
default
c88d7e72f0 Minor tweak to new metadata. 2024-11-23 17:16:31 +01:00
default
09d268495c The 'metadata' field in user.json is now a string instead of a dict. 2024-11-23 17:08:57 +01:00
default
775fb14706
Version 2.64 RELEASED. 2024-11-21 15:12:22 +01:00
default
b0dd7f59a2
Updated RELEASE_NOTES. 2024-11-21 07:21:32 +01:00
Giacomo Tesio
b6107c8777 Makefile: enable static compilation with musl
Assuming a Debian GNU/Linux system with wget, tar, git, make
and musl-gcc

```
mkdir build
cd build
export BUILD_TARGET=$PWD
export CC="musl-gcc"

echo download and build zlib
wget http://zlib.net/current/zlib.tar.gz
tar xvf zlib.tar.gz
cd zlib-1.3.1/
./configure --prefix=$BUILD_TARGET --static
make
make install
cd ..

echo download and build openssl
wget https://github.com/openssl/openssl/releases/download/openssl-3.4.0/openssl-3.4.0.tar.gz
tar xvf openssl-3.4.0.tar.gz
cd openssl-3.4.0
CC="musl-gcc -fPIE -pie -static -idirafter /usr/include/ -idirafter /usr/include/x86_64-linux-gnu/" ./Configure no-shared no-async --prefix=$BUILD_TARGET --openssldir=$BUILD_TARGET/ssl linux-x86_64
make depend
make
make install
cd ..

echo download and build curl
wget https://curl.se/download/curl-7.88.1.tar.gz
tar xvf curl-7.88.1.tar.gz
cd curl-7.88.1
./configure --disable-shared --enable-static --disable-silent-rules --disable-debug --disable-warnings --disable-werror --disable-curldebug --disable-symbol-hiding --disable-ares --disable-rt --disable-ech --disable-dependency-tracking --disable-libtool-lock --enable-http --disable-ftp --disable-file --disable-ldap --disable-ldaps --disable-rtsp --disable-proxy --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher --disable-mqtt --disable-manual --disable-libcurl-option --disable-ipv6 --disable-openssl-auto-load-config --disable-versioned-symbols --disable-verbose --disable-sspi --disable-crypto-auth --disable-ntlm --disable-ntlm-wb --disable-tls-srp --enable-unix-sockets --disable-cookies --disable-socketpair --disable-http-auth --disable-doh --disable-mime --disable-dateparse --disable-netrc --disable-progress-meter --disable-dnsshuffle --disable-get-easy-options --disable-alt-svc --disable-websockets --without-brotli --without-zstd --without-libpsl --without-libgsasl --without-librtmp --without-winidn --with-openssl=$BUILD_TARGET/ --disable-threaded-resolver --with-zlib=$BUILD_TARGET/ --prefix=$BUILD_TARGET/
make
make install
cd ..

echo download and build snac2
git clone https://codeberg.org/grunfink/snac2.git
cd snac2 # assuming this commit in master
make CFLAGS="-g -Wall -Wextra -pedantic -static -DWITHOUT_SHM" PREFIX=$BUILD_TARGET LDFLAGS="-L$BUILD_TARGET/lib64 -lcurl -lssl -lcrypto -lz"
make install PREFIX=$BUILD_TARGET
cd ..

echo a statically linked snac is ready at $BUILD_TARGET/bin
```
2024-11-20 21:51:43 +01:00
default
c507e30607
New function xs_unicode_right_to_left(). 2024-11-20 18:10:02 +01:00
default
781c0edcc6 mastoapi: fixed crash in posts without 'published' field. 2024-11-20 15:59:36 +01:00
default
3a91185248
Updated documentation. 2024-11-19 15:51:32 +01:00
default
fc9ba8f026 More usage of get_in_reply_to(). 2024-11-19 06:59:53 +01:00
default
085caa7747 New function get_in_reply_to(). 2024-11-19 06:46:14 +01:00
default
4daacf6b9d
Updated TODO. 2024-11-18 20:38:30 +01:00
default
41aa022e0d Merge branch 'master' of grunfink-codeberg:grunfink/snac2 2024-11-18 15:23:17 +01:00
grunfink
5cef1ecc1c Merge pull request 'do not autocapitalize "Login: " masto api field' (#227) from fkooman/snac2:no-autocapitalize into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/227
2024-11-18 14:20:28 +00:00
François Kooman
a7974cbaa7 do not autocapitalize "Login: " masto api field
on Chrome/Safari the Mastodon API OAuth login page auto capitalizes
the first char of the "Login: " field. This disabled that.
2024-11-18 11:46:14 +01:00
default
437829a833 mastoapi: more tweaks to notifications code. 2024-11-17 11:08:25 +01:00
default
442b46abc0 mastoapi: added more checks in the notifications code. 2024-11-17 10:53:47 +01:00
default
2416945748 In the insert cmdline op, don't re-add if it's already in the timeline. 2024-11-17 10:23:43 +01:00
default
ec5ba68d00 Updated TODO. 2024-11-17 10:21:51 +01:00
default
876c892960 The server creates a pidfile inside the base directory. 2024-11-17 10:21:15 +01:00
default
0858f57d8a Updated TODO. 2024-11-17 10:09:41 +01:00
default
90a959cb85 Updated TODO. 2024-11-16 07:26:44 +01:00
default
29caa37fd7 Allow underscores in hashtags. 2024-11-16 07:25:25 +01:00
default
f2213021c4 Minor tweak to proxy code (some URLs were not correctly formed). 2024-11-14 16:21:14 +01:00
default
6a22a583fe
Version 2.63 RELEASED. 2024-11-14 15:18:11 +01:00
default
07f1231b07 Updated RELEASE_NOTES. 2024-11-14 15:17:14 +01:00
default
edc810cb27 Updated documentation. 2024-11-13 20:19:14 +01:00
default
000db2c1e4 Updated dependencies. 2024-11-12 10:36:07 +01:00
default
19b9998f8c The proxy token seed is created on startup and never stored. 2024-11-12 09:01:30 +01:00
default
50fa2ae0e6 mastoapi: a lot of proxy code. 2024-11-12 06:35:00 +01:00
default
4971e54e56 mastoapi: added some proxy code. 2024-11-12 06:11:10 +01:00
default
bbe061ca19 make_url() now accepts generating proxied urls by token. 2024-11-12 05:47:11 +01:00
default
af92863ebb Added new proxy authorization by token. 2024-11-12 05:38:55 +01:00
default
36c6538927 Bumped version (I forgot to do it several commits ago 🤦). 2024-11-11 19:56:42 +01:00
default
f7860a921c Updated TODO. 2024-11-11 19:42:19 +01:00
default
9283bc3bc0 Fixed crash in xs_multipart_form_data() (from the tooot application). 2024-11-11 19:41:43 +01:00
default
33375aca90 Fixed possible crash in proxy code. 2024-11-10 07:32:48 +01:00
default
a657274d4e In the RSS description, don't convert the bio from Markdown. 2024-11-10 07:16:48 +01:00
default
d9b94a556a RSS feeds are now 2.0 instead of 0.91. 2024-11-10 06:59:55 +01:00
grunfink
5e37c780da Merge pull request 'Fix "empty input line" warning by groff' (#222) from sergiodj/snac2:fix-groff-warning into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/222
2024-11-09 03:59:37 +00:00
Sergio Durigan Junior
c3339adce7
Fix "empty input line" warning by groff
Signed-off-by: Sergio Durigan Junior <sergiodj@sergiodj.net>
2024-11-08 22:17:56 -05:00
default
2096943a45 Updated TODO. 2024-11-08 15:59:12 +01:00
default
56ee6135d2 Merge branch 'master' of grunfink-codeberg:grunfink/snac2 2024-11-08 15:39:10 +01:00
grunfink
21cd4ddf77 Merge pull request 'Updated FreeBSD rc script' (#221) from draga79/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/221
2024-11-08 14:38:50 +00:00
draga79
446eca71b7 Updated FreeBSD rc script
On FreeBSD, the snac process is now managed by the daemon(8) utility - this means it will be restarted in case of crash, etc.
2024-11-08 08:01:53 +00:00