grunfink,
@grunfink@comam.es avatar

I'm glad to announce the release of version 2.50 of , the simple, minimalistic instance server written in C. It includes the following changes:

Incoming posts can now be filtered out by content using regular expressions on a server level (these regexes are written in the filter_reject.txt file at the server base directory; see snac(5) and snac(8)).

Improved page position after hitting the Hide or MUTE buttons (for most cases).

Use a shorter maximum conversation thread level (also, this maximum value is now configurable at compilation level with the MAX_CONVERSATION_LEVELS define).

Fixed a bug where editing a post made the attached media or video to be lost.

The way of refreshing remote actor data has been improved.

Posting from the command-line now allows attachments.

Added defines for time to enable MacOS builds (contributed by andypiper).

https://comam.es/what-is-snac

If you find useful, please consider buying grunfink a coffee: https://ko-fi.com/grunfink

This release has been inspired by the song The Raven by .

teajaygrey,
@teajaygrey@rap.social avatar

@grunfink I submitted a PR to update MacPorts' snac to 2.50 here:

https://github.com/macports/macports-ports/pull/23182

CI checks passed OK!

It's up to someone else with commit access to merge it.

Thank you for your continued enhancements, bug fixes and contributions!

millions,

@grunfink do you know why I’m getting a curl.h not found error when I’m trying to build it

“ x_curl.h:14:10: fatal error: curl/curl.h: No such file or directory”

grunfink,
@grunfink@comam.es avatar

It seems like you don't have libcurl installed in your system (that, and openssl, are the only external dependencies snac requires).

In the README.md file you have instructions on how to install it on several systems.

millions,

@grunfink oh apparently I didn’t I thought I just needed the curl package

grunfink,
@grunfink@comam.es avatar

No, it needs the library (not the command-line tool).

millions,

@grunfink ok

Also if I wanted to host it on something like fedi.ofplayers.net do I make the hostname the ofplayers.net part and the url prefix fedi or did I get that wrong

grunfink,
@grunfink@comam.es avatar

No; if you want fedi.ofplayers.net (i.e. use the full domain for snac), just set that as the server and don't set a prefix. Your URL will be https://fedi.ofplayers.net/millions .

If you want to use ofplayers.net for other things, and have your snac instance hanging in a subdirectory, then set ofplayers.net as the host and fedi (or the subdirectory you like) as the prefix. Your URL will then be https://ofplayers.net/fedi/millions .

Shamar,

is really an impressive work, @grunfink.

Looking at the code I wonder where the "backported" xs library comes from: it looks very clean and nice...

Also, I've never seen C headers used for implementations: it's a clever trick that reduce the gap between #C and a more advanced language like (:-D) but I wonder why you coded it this way.

grunfink,
@grunfink@comam.es avatar

Thanks for the nice words.

The xs is an intentionally lightweight library I (with the help of some friends) started for a very different project that never was. As it adds some niceties to C coding, I use it everywhere. It's mostly feature-complete now, but I fix and add some things occasionally. These days, is mostly its main user, as other projects that use it are pretty irrelevant.

Using C headers both for implementations and prototyping is somewhat of a perversion 😆, but it simplifies immensely sharing code between projects, because you don't have to care about building libraries (static nor dynamic) and their operating system idiosyncracies. You just drop the .h in your project, include it and it's done. The reason: simplicity. If I had a motto as a developer, simplicity would be.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • fediverse
  • mdbf
  • rosin
  • everett
  • cisconetworking
  • love
  • Youngstown
  • slotface
  • Durango
  • ngwrru68w68
  • kavyap
  • tacticalgear
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • Leos
  • cubers
  • modclub
  • InstantRegret
  • ethstaker
  • osvaldo12
  • GTA5RPClips
  • khanakhh
  • anitta
  • provamag3
  • normalnudes
  • tester
  • megavids
  • JUstTest
  • All magazines