This thread is only for feedback related to technical issues(bug reports, suggestions). Otherwise use >>30356 Public Repo: https://github.com/towards-a-new-leftypol/leftypol_lainchan If you have any grievances you can make a PR.
Mobile Support: https://github.com/PietroCarrara/Clover/releases/latest Thread For Mobile Feedback:
>>>/tech/6316 Onion Link: http://wz6bnwwtwckltvkvji6vvgmjrfspr3lstz66rusvtczhsgvwdcixgbyd.onion Cytube: https://tv.leftypol.org/ Matrix: https://app.element.io/#/room/!RQxdjfGouwsFHwUzwL:matrix.org We are currently working on improvements to the site, subject to the need of the tech team to sleep and go to their day jobs. If you need more immediate feedback please join the matrix room[s] and ask around. Feel free to leave comments, concerns, and suggestions about the tech side of the site here and we will try to get to it as soon as possible
Barbara_Pitt
Barbara_Pitt
Barbara_Pitt
https://www.youtube.com/watch?v=iNCidAi5ZxwBarbara_Pitt
Barbara_Pitt
Barbara_Pitt
public repo is here:
https://github.com/towards-a-new-leftypol/leftypol_lainchanso if you have any grievances you can make a PR.
i still have to upload the devops stuff, that's coming soon
>>903I would add a search filed in the catalog in the already long list of suggestions.
>>931Yeah, I just can't get (you) and the floating reply box to work
>>943Money is not a problem for the moment and I think it would have to overtake current bunkerchan in terms of userbase to become one in my opinion, the priority is fixing software issues and having enough the working hands to do that.
>Just where was space getting his money to finance bunkerchan in the first place?Don't know, surely from his own pocket. But he indeed wanted to bring ads to bunkerchan maybe for that reason and split the revenue 50/50 with us (the mod team), we refused of course telling him donations would be preferable if he had any problems with covering server costs.
>>948Thank you your help is appreciated.
>>951To quote what the OP told me "lainchan needs to be beat into shape before its really usable", I will ask the techies and will give you an answer to your question, if they have one.
For some reason I keep getting this error while trying to reply to this
>>953 post
>>966is this theme better or
>>905 this one
>>967>>968I haven't heard of that one but space is 100% looking to turn into a grifter
>>903BANNERS
MAKE A THREAD SO WE CAN MAKE BANNERS FOR THE CHAN.
>>981compare to
these were screencapped at the same time
BUG report: you are not allowed to post a duplicate image even of deleted pictures.
Found out via
https://leftypol.org/leftypol/res/30620.htmlI was trying to reply to this thread (since we can't post more than one image at the same time) and this shit auto-drops me back to leftypol. Since this is the first sticky I still thought I was inside the thread.
>>919Hahaha can we try and get Hot Wheels to come code for us? cudbgud
>>905Make the purple a light yellow
>>999i think it is fixable by commenting out (prepending with //) lines 474-476
https://github.com/lainchan/lainchan/blob/master/post.phpi don't really know the reason for why they added referrer header checking for posting replies other than possible cross-site request forgery (CSRF)?
https://security.stackexchange.com/questions/66165/does-referrer-header-checking-offer-any-real-world-security-improvementhttps://security.stackexchange.com/questions/96114/why-is-referer-checking-needed-for-django-to-prevent-csrfhttps://security.stackexchange.com/questions/158045/is-checking-the-referer-and-origin-headers-enough-to-prevent-csrf-provided-thathttps://portswigger.net/web-security/csrfi think it is meant more to protect the user rather than anything server-side. however i think on a site like this such a scenario is extremely unlikely. my guess is it's to prevent the scenario of somebody leaking their tripcode on a fake/spoofed/third-party-front-end of a vichan instance (such as leftypol.org). so for example i could be a sneaky hacker and make some "webring" front-end site that has a bunch of imageboards sites like leftypol.org, lainchan.org, etc. etc. all in one, and if someone posts in one of those sites through my front-end, i can record what they type in the Name field and steal any tripcodes. that's my theory at least. it's up to the site admin if he wants to comment this out or not, personally i think it's next-to-useless and safe to comment out
>>1002Thanks for fast confirmation.
Do you think this is icecat bug that needs to be reported? I am not familiar with web protocol stuffs and not sure why would only icecat trigger this
>>10041. No
and 2. It seems like most people in this thread are against it?
>>1008this is a problem specific to lainchan. vichan does not have this problem afaik.
observe lines 323 and 333 in vichan's post.php
https://github.com/vichan-devel/vichan/blob/master/post.phpand lines 328 and 337 in lainchan's post.php
https://github.com/lainchan/lainchan/blob/master/post.phpfor
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/config/post.phpin line 328 change first line to second line:
$thread = $query->fetch(PDO::FETCH_ASSOC);
$post = $query->fetch(PDO::FETCH_ASSOC);
in line 337 change first fragment to second fragment:
link_for($thread) . ($thread['thread']
link_for($post) . ($post['thread']
i think that will fix the error, give it a try
>>1016>>1018i'll need to see the site admin's most up-to-date
instance-config.php to see what's going on.
also i made a small inaccuracy in >>30665 , inline-expanding has nothing to do with reply behavior, i think all it is is expanding an image when clicking a thumbnail instead of opening in a new tab
>>1021if you're gonna be that involved maybe go to the matrix room and ask to join the tech team.
tech team hasnt put the more recent prod/server version of instance config in source control
>>1025they are anarcho-stickies
they don't obey your arbitrary rules
>>1028also why dont u just do it as a pull request on github?
just fork the leftypol repo, make a change, add/commit, push to your repo then go to github and click the pull request button on that repo
>>1033 (you)
Do we really need to bring back (you)s? I think not having it actually incentivizes people to read more posts and discourages people from baiting for (you)s or only focusing on (you)s while other shit is going on in the thread.
>>1033>>1034>>1035>>1036the (You) config code are just these two lines:
$config['additional_javascript'][] = 'js/ajax.js';
$config['additional_javascript'][] = 'js/show-own-posts.js';
however i strongly recommend not adding this until first fixing the not-staying-on-same-page-after-replying problem because ajax.js is known to also cause a similar conflict at least with my experience with lainchan which is why i deliberately left it out of >>30665
Enable other themesreplace/add the following in your
instance-config.php:
$config['stylesheets']['Yotsuba B'] = ''; // Default
$config['stylesheets']['Yotsuba'] = 'yotsuba.css';
$config['stylesheets']['Burichan'] = 'burichan.css';
$config['stylesheets']['Dark'] = 'dark.css';
$config['stylesheets']['Futaba'] = 'futaba.css';
$config['stylesheets']['Gentoochan'] = 'gentoochan.css';
$config['stylesheets']['Gurochan'] = 'gurochan.css';
$config['stylesheets']['Jungle'] = 'jungle.css';
$config['stylesheets']['LainchanJP'] = 'lainchanjp.css';
$config['stylesheets']['Miku'] = 'miku.css';
$config['stylesheets']['Notsuba'] = 'notsuba.css';
$config['stylesheets']['Photon'] = 'photon.css';
$config['stylesheets']['Szalet'] = 'szalet.css';
$config['stylesheets']['Tsuki'] = 'tsuki.css';
Fix reply behavior>>1042Basic mobile support>>1028(and make note to delete this css if a better js solution is made in the distant future)
Fix reporting>>1015 >>1043check the issue list before making a suggestion
https://github.com/towards-a-new-leftypol/leftypol_lainchan/issuessome of the things you asked for were already there
update your issue/ticket on github for broken reporting with the suggested fix/info
>>1015my fixes are public domain i dont care who takes credit no need to type anon wants x
>>1049i personally don't like the sidebar either and think the site admin should strongly consider removing it, it does more harm than good because
A) there's no easily-clickable way to close it
B) it breaks mobile support, requiring wacky workarounds like
>>1028 which im not a fan of
C) theme changing doesn't work with the sidebar
take a look at this other lainchan instances, their front page doesn't load in any sidebar
https://lainchan.orghttps://seenoevil.lolhttps://www.4chon.mesome vichan instances front pages to check out, since the difference is very minimal anyway:
https://pildilaud.eehttp://zerochan.orghttps://macechan.orghttps://pawsru.orghttps://sushigirl.ushttps://ponkolauta.nethttps://www.latinchan.org >>1049you can get rid of the sideby by typing in the address as
>>1050 said before
>>1015>>1043for fixing reporting (or at least attempting to), will also need to change line 388
( $thread['thread'] ? $thread['thread'] : $id ) . ".html" . ($thread['thread']
to
( $post['thread'] ? $post['thread'] : $id ) . ".html" . ($post['thread']
>>1015>>1043>>1056also lines 373 and 374 change all $thread to $post
to sum up, lines 328, 337, 373, 374, 388 will need to be changed
>>1058can u try this, makes the
red a little brighter and therefore easier to read
span.heading {
color: indianred;
}
>>1062For colors, you add something like this:
header div.subtitle, h1 {
color: #444444;
}
Then, replace #444444 with whatever color or hex code you want.
>>1062ctrl+shift+c and clicking the element usually gives the appropriate selector
header div.subtitle, h1 {
color: indianred;
}
>>1067try these
div.banner {background-color:RebeccaPurple;}
#quick-reply th, #quick-reply td {background-color:#1F1F1F;}
#quick-reply table {border-color:#373b41}
>>1089cuz he aint enable noko yet
>>1042>>1083enable this too admin
>>1076>>1077at the cost of server cpu
>>1085>>10861 thing at a time, still waitin for this
>>1057>>1088all dat shud b ez including vids, just needs to enable the ffmpeg crap, but still waitin for more more urgent bug fixes
>>1051and now 4th reason found for why sidebar should be removedA) there's no easily-clickable way to close it
B) it breaks mobile support, requiring wacky workarounds like
>>1028 which im not a fan of
C) theme changing doesn't work with the sidebar
D)
when you refresh on any page, it brings you back news.html (front page)get rid of it asap no one likes it
the reporting problem wouldnt be here if you didn't use lainchan 5.1.3 instead of vichan 5.1.4. lainchan hasnt been updated for over a year. i don't know who convinced you to use lainchan instead of vichan, the dude unnecessarily changed a bunch of shit in the code which ended up breaking a whole bunch of other shit
look how this turdburglar totally rewrote the report code and didnt bother to bug test through it
lines 276-397
https://github.com/lainchan/lainchan/blob/master/post.phplines 268-354
https://github.com/vichan-devel/vichan/blob/master/post.php>>1093that warning is bogus, it's just hotwheels acting like a whiny baby and asking for $80/hr or some shit, he's a notorious drama queen, vichan is more up-to-date
see look for here some vichan instances
>>1051and
https://mintboard.org/vichan/bone/ notice how they have everything working including the report system
and another
https://uboachan.net >>1091>>1093>>1094Would it be much of a task to switch to vichan? It would essentially just be like a large update given the code similarities, right?
>>1092Yeah I don't know much about computers and even I thought that was weird when I looked at it. It's like he submitted a rewrite of a feature halfway through.
>>1095i dont know how much, but this is probably what one would do
1. host a test instance of lainchan and vichan locally, make some threads, posts, images etc. on lainchan, and attempt to copy everything to the vichan instance to see if it's even possible in the first place. verify if reporting even works on the vichan instance (and possibly other bugs like that iconv() thing), otherwise a migration would be pointless since that's the intended purpose of the migration to vichan
2. host an instance of vichan, copy everything from leftypol.org onto there, may need to shut the site down temporarily for migration
>>1091>>1092if leftypol was to rewrite totally new board software, what language would it be in?
Scala? Java? C#? Python?
>>1102yeah but thats by Rat, who is currently taking a break due to some personal real life issues and gochan hasn't really been making progress
im talking about brand new here
>>1108what we really need is something that isn't lynxchan or outdated shit like vichan/lainchan.
>inb4 they're updating vichanits still incompatible with php7 and stuck on php5.6 which is deprecated and came out in like 2004. Its basically legacy software which is just being maintained with minor updates at this point
>>934Dashchan sucks, but Kuroba is nice. I'm developing support for leftypol on it. It would be cool if there was a test board so that I don't have to spam in
>>>/b/.
Sent from my IPad >>1051I installed the side bar and I don't like it either. I'm currently doing holiday stuff when I'm not doing work stuff.
I think I can make an easy fix. The reason the horse shit front page makes sense right now is because it is autogenerated.
>>1104Agree with this tbh, we shouldn't just focus on feature parity but having better features. We should strive to be ahead of vichan and them pulling our features, not us scavenging from other codebases.
>>1106Then where's the code for it?
>>1110AFAIK infinity next was never finished?
>Infinity Next was never completed and is currently in an unusable state. I am currently working on refactoring it to Laravel 6 and modernizing some backend work, but it is just something I am doing for myself. For some reason, I just can't stand to see it unfinished.
>Use at your own risk: I can't help you.I mean i guess with that much work you might as well just keep working on vichan
>>1122I would support building a headless/api only chan but the problem is that alot of /g/entoo-fags hate javascript and disable it in the browser because Richard Stallman told them to in 201, even though with the rise in popularity of SPA's this would essentially break 50% of the internet that isnt just certain news sites or blogs.
So the react/frontend js would be a problem
The headless ib would have to be called by another server side program that made shit into static html/css for the autists, or people on imageboards would just have to get over javascript in [current year]
>>1123So we should switch to vichan!
We already moved from lynxchan, lainchan to vichan should be a walk in the park.
>>1126AFAIK its rat, zero, and comatoast who made the original decision to use lainchan. ask them. lainchan also has some nntp compatibility but i think its disabled by default
Anyway i dont think its a good idea for leftypol to be in a federation with a bunch of imageboards since imageboards other than leftypol/bunkerchan tend to be filled with schizos, nazis, furfags, pedos, and other general weirdos who are too autistic for mainstream social media. lainchan, bunkerchan, and leftypol are literally the only decent imageboards out there.
>>1123I mean the team has already started to make changes to the code, if they do even half the shit on the issues list it will already make it better and more maintained than vichan, like adding unit tests and proper logging. I say just stick with the codebase we have and improve it as much as possible until such time as something better is developed.
Any updates from vichan is similar enough to be merged in pretty easily id imagine
>>1129>I mean the team has already started to make changes to the code, if they do even half the shit on the issues list it will already make it better and more maintained than vichan, like adding unit tests and proper logging. I say just stick with the codebase we have and improve it as much as possible until such time as something better is developed.This is what we're trying to say though. We're saying the codebases are so similar now we can switch over with little effort, then improve vichan. It will stop us developing in parallel and allow us both to reap the benefits of cooperation, rather than porting each others works.
We are early in the project and the code is still quite similar, we can switch and contribute to a greater project or become a backwater catching up to them.
>>11341. that would require the tech team to contribute to vichan instead of our fork, so the source code would ultimately be under control of the vichan devs and that would become a bottleneck, because those people would have to approve all changes which would slow down development velocity
2. "Backwater", uh, which one is developing faster, standard vichan or the leftypol version? because the last commit to leftypol-chan was like 2 hours ago and the last commit to vichan was 22 days ago. There is no "developing in parallel", there's 1 team doing active development (leftypol) and another team doing small maintainence patches like once a month MAX (vichan).
its more likely vichan will want to merge leftypol changes than the other way around.
Read the readme.md of vichan - it literally says
>Vichan has next to no active development.and has for years. the whole point of the split was that space_ was inactive and refusing the mods. why hand over control to another clique of not even leftist inactives who have control over codebase? even if they fork vichan they site would be down for another couple of days to week while the recreate all the same functionality in vichan that they've enabled here
Based fixes as usual
>>1139dark red is just dark with red replacing the green, which kills the
>greentext<orangetextAnons let's try to make things clearer for the dev team. Here are some of the issue son github we should be answering.
Flags:
Make a thread with the flags we want and name them
https://github.com/towards-a-new-leftypol/leftypol_lainchan/issues/10Inline reply:
What is this? I genuinely don't know what is this supposed to mean.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/issues/4floating reply box:
It works for now. Anything you want to say about it?
https://github.com/towards-a-new-leftypol/leftypol_lainchan/issues/12Themes:
I know most of you will use dark, but I like colgate. post your wanted themes.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/issues/26/GET/chan:
I'm not sure what's gonna happen to /GET/, but for now what do you want to see comrades? Should we have on the top bar or the sidebar? Should we include it here or should we just link to getchan.net?
https://github.com/towards-a-new-leftypol/leftypol_lainchan/issues/13Archiving threads:
I don't think this is coming anytime soon, but in the meantime let's see how should this be done. What archiving service should we use? archive.is or archive.org or something else?
https://github.com/towards-a-new-leftypol/leftypol_lainchan/issues/3Filetypes:
I'm not sure if you want support for anything other than books and videos. If there is a format you wish to be supported please say so.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/issues/11>>11432) dont use sidebar. i dont. just go directly to leftypol.org/leftypol
3) thats their choice and AFAIK they decided to go back to their own site
Someone at
>>>/tech/6316 has started mobile support for leftypol. Please help them test it and provide feedback
The catalog puts threads in whatever order it finds them in recent_posts.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/f37be95547268a466eb0a3714f7a76bea165ecf3/templates/themes/catalog/catalog.html#L49> {% for post in recent_posts %}recent_posts is set by the Catalog class' build method.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/f37be95547268a466eb0a3714f7a76bea165ecf3/templates/themes/catalog/theme.php#L319> $recent_posts = $this->generateRecentPosts($threads);generateRecentPosts uses whatever order it finds in $threads.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/f37be95547268a466eb0a3714f7a76bea165ecf3/templates/themes/catalog/theme.php#L339> foreach ($threads as $post) {$threads is set by the Catalog class' build method with a query that mandates bump order.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/f37be95547268a466eb0a3714f7a76bea165ecf3/templates/themes/catalog/theme.php#L310> $query = query($sql . ' ORDER BY `bump` DESC') or error(db_error());So sticky is ignored in the non-JS catalog. By contrast the index order is based on a sticky query.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/f37be95547268a466eb0a3714f7a76bea165ecf3/inc/functions.php#L1335> $query = prepare(sprintf("SELECT * FROM ``posts_%s`` WHERE `thread` IS NULL ORDER BY `sticky` DESC, `bump` DESC LIMIT :offset,:threads_per_page", $board['uri']));If sticky is desired in the non-JS catalog
>>1025 its ORDER BY clause can be adjusted to that of the index query.
>>1159t. Know Jackshitingson
Tor isn't illegal if that's what your scared ass believed. Though being a communist in many jurisdictions is (in how you're targeted).
>>1161Yes I know. I'm just saying that an onion server was a long awaited feature on bunkerchan and I think it's extremely unfortunate that it seems to have come out in this under-handed "seee?? we've got the onion server now tho!" way on Space_'s side just as the long awaited mod uprising took place.
I've always been pro-onion server AND pro-mod uprising. I just anticipated that the onion server would come WITH the second, and now it at least appears to be a little of an arms-war, but judging by the weakened state Space_'s domain is in I'd say we could easily catch up.
The Bunkechan onion just went online again, this time it appears successfully:
http://nk6ceeffxhsa7qesgv37iux44lhwsvr522z2vb3eg55qtqaci4zdreid.onion/Please consider the baller move of matching it.
A little button at the bottom of thread pages for refreshing the page, please. This is trivial to implement, too!
>>904>rename /b/ to "random"hard no, keep board names as short as possible. /v/, /a/, etc. /edu/ and /ent/ are fine too.
>>1173>do we really want onion traffic?Onion traffic = based revolutionary guerilla blog posts and occasional spam.
Yes we want onion traffic.
>>1174Basically yeah.
>>1175Cool palette.
>>1009I'm gonna
NEED you to repost that Mommy Yo Jong image in full resolution please
>>1186Error
An error has occured.
That file already exists!
Go back
Janny retards won't turn off R9K
>>903Nice numbers
As a side note, it would be nice if you could update the /hobby/ and /anime/ board threads again, because I had no fucking idea about this split and have been actively posting on those boards and thus posting new content that does not exist on the current boards here, despite my older posts and threads being up; An example would be the FMA thread and Communist Leftist Anime threads or the Harry Potter and Star Wars threads, as well as the ATLA thread, which recently featured a lengthy debate on Aang's ethics and was a serious discussion.
Also the transfer of threads from bunkerchan to here was done without spoilers, so a lot of spoiled pics are unspoilered… such as my post on Boruto Chapter 52, (the excerpt on Nuclear Fusion) as those are serious manga spoilers.
>>1198And don't hesitate to use the new and shiny
>>>/meta/ !
>>1192 >>31687
Thanks. It works now. Since it's an easy fix, how about enabling spoilers
>>1083 as well?
The second post quote of
>>1203 was not recognized due to the regexp used in:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/64103eb6fc743d8c76496c41edac2901efb67c6d/inc/functions.php#L2020> if (isset($board) && preg_match_all('/(^|\s)>>(\d+?)([\s,.)?]|$)/m', $body, $cites, PREG_SET_ORDER | PREG_OFFSET_CAPTURE)) {which consumes the space after a post quote, instead of merely checking that it's there. As a result textually consecutive post quotes, which the source calls cites, cannot be separated by a single space. The solution is to use a lookahead assertion instead, which keeps the space available as the prefix of the next post quote. And since post quotes are allowed at the end of a question, it doesn't seem fair to discriminate against exclamations.
> if (isset($board) && preg_match_all('/(^|\s)>>(\d+?)((?=[\s,.)?!])|$)/m', $body, $cites, PREG_SET_ORDER | PREG_OFFSET_CAPTURE)) {The same problem exists for "Cross-board linking":
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/64103eb6fc743d8c76496c41edac2901efb67c6d/inc/functions.php#L2070> if (preg_match_all('/(^|\s)>>>\/(' . $config['board_regex'] . 'f?)\/(\d+)?([\s,.)?]|$)/um', $body, $cites, PREG_SET_ORDER | PREG_OFFSET_CAPTURE)) {and the same solution applies.
currently:
- one space: >>1 >>2
- two spaces: >>3 >>4
Assertions:
https://www.php.net/manual/en/regexp.reference.assertions.phpTo add the orange quotes of issue #31 look at the green quote line:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/64103eb6fc743d8c76496c41edac2901efb67c6d/inc/functions.php#L2208> $body = preg_replace("/^\s*>.*$/m", '<span class="quote">$0</span>', $body);and add a new line after it:
> $body = preg_replace("/^\s*<.*$/m", '<span class="orangequote">$0</span>', $body);then add whatever styling you want to a span.orangequote css rule in the same way as for span.quote, e.g.:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/64103eb6fc743d8c76496c41edac2901efb67c6d/stylesheets/dark_red.css#L8>>1164See
>>>/anime/5637>>1211>>1217That refers to the 'Spoiler Image' checkbox in the post form. Example:
>>>/anime/5632 NSFW. The fix:
>>1083>>1216I don't want my github account associated with anything even remotely connected to anime, and making a burner account for a few small fixes is too much hassle.
>>1218The
> if (isset($board) && preg_match_all('/(^|\s)>>(\d+?)((?=[\s,.)?!])|$)/m', $body, $cites, PREG_SET_ORDER | PREG_OFFSET_CAPTURE)) {line is the fix for "Cites". The same change from
> ([\s,.)?]|$)to
> ((?=[\s,.)?!])|$)fixes "Cross-board linking", so the fixed "Cross-board linking" line is:
> if (preg_match_all('/(^|\s)>>>\/(' . $config['board_regex'] . 'f?)\/(\d+)?((?=[\s,.)?!])|$)/um', $body, $cites, PREG_SET_ORDER | PREG_OFFSET_CAPTURE)) { >>1224 (checked)
What I mean by this is I use the catalog, and I want to be able to hide threads through there without having to find the page number. Also worth noting is that I want to be able to see the page number of the post.
To add underlining for issue #37 look at the spoiler markup line:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/64103eb6fc743d8c76496c41edac2901efb67c6d/inc/config.php#L659> $config['markup'][] = array("/\*\*(.+?)\*\*/", "<span class=\"spoiler\">\$1</span>");then add a new line with:
> $config['markup'][] = array("/(.+?)/", "<span class=\"underline\">\$1</span>");then add
> text-decoration: underline;in a span.underline css rule to whichever stylesheet you want, e.g.:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/64103eb6fc743d8c76496c41edac2901efb67c6d/stylesheets/style.css#L606orange quotes:
>>1207>>1226Thanks.
>>903>using a fork of a dead fork of a dead fork of a dead fork instead of glorious JSchan powered by Aussie shitpostsFor real, not only JSchan is under active development (unlike with 99% of the vichan forks), but in its current state is much better than vichan and Lynxchan combined.
>totally functional without Javascript>fast as fuck because it only loads new elements instead of reloading the entire page>uses websockets to display new posts as soon as they're made instead of using a timer (you still can use a timer if you want)>looks great on phones (unlike Lynxshit)>looks great in general (unlike Lynxshit)>has a logs page that doesn't give AIDS (unlike Lynxshit)>has a chess-like captcha that filters out retards (the classic 6-char captcha can be used as well)>dozens of cool themes, including one inspired in Windows 95>easy as fuck board creation>supports multiple formats>supports multiple files per post>multiple post styling options (similar to Lynxchan's)>compatible with Tor (can run as a hidden service)>can report and delete multiple posts with one click (useful against spam)>dozens of anti-spam features>has a JSON API>overboard with a catalog view>thumbnails have a nice loading bar>audio files use waveforms as thumbnails>optional desktop notifications>(You)s>regex filters>various other optionsSeriously, give it a check:
https://gitgud.io/fatchan/jschan/ >>1239from their website:
>Please note: jschan is not production-ready. There may be bugs and WILL be breaking changes. If you insist on running your own instance, do not expect help when something breaks. Please read everything including the update section thoroughly. These instructions are NOT step-by-step or complete, and assume you have some experience with software setup, servers, networking, etc.soooo.. not ready yet
>>1238 (me)
Nevermind, my ISP is acting out, it's not your fault.
>>1238 (me)
Nevermind, my ISP is acting out, it's not your fault.
>>992I get that it may be a joke, but IIRC you can pay him hourly for tech support on vichan (which this is a fork of)
However I suspect he want to
have a Fillipino caretaker wash his hands from the imageboard whole mess and work on font software.
>>1247there's nothing secret in the source code so to a certain extent it doesn't matter. Plus github has lots of integrations and tools built in
>>1247yes the DNS is broken
>>1240That warning means nothing and only exists as a way to tell people that the software is under continuous development as opposite of having "stable releases" like other frameworks. The software is stable enough to be used without problem, and despite what the warning says the dev actually listens to your feedback when something is bugged or broken.
>>1241You only need to use your brain for 10 seconds. The FAQ includes a detailed explanation as well:
>Select the boxes that correspond to each solid/filled icon in the grid. The image is shuffled and distorted, so use your brain. Junk around the edges is not included. See this example (red lines added for illustrative purposes): The reason the spoiler image fails to show in this test
>>>/anime/5652 is the img.src with two leading slashes:
> src="//static/spoiler.png"A further hint is the lack of image dimensions:
> style="width:px;height:px"The src attribute is this concatenation:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/3612790a51496ac1209833c8a9b597f04dcc5f25/templates/post/image.html#L37> {{ config.root }}{{ config.spoiler_image }}The $config['root'] should end in a slash:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/3612790a51496ac1209833c8a9b597f04dcc5f25/inc/config.php#L1167> // The root directory, including the trailing slash, for Tinyboard.and in leftypol it does:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/3612790a51496ac1209833c8a9b597f04dcc5f25/inc/instance-config.php#L84> $config['root'] = '/';This means that $config['spoiler_image'] should not start with a slash, and it does not start with one in vichan:
https://github.com/vichan-devel/vichan/blob/d6d10829918f5354f7cbc3bc942547d79ac1f245/inc/config.php#L818> $config['spoiler_image'] = 'static/spoiler.png';while in leftypol a leading slash appears:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/3612790a51496ac1209833c8a9b597f04dcc5f25/inc/config.php#L797> $config['spoiler_image'] = '/static/spoiler.png';According to git log the commit that added the extra slash is:
> Author: Benjamin Southall <[email protected]>> Date: Fri Mar 3 12:26:00 2017 +0900https://github.com/towards-a-new-leftypol/leftypol_lainchan/commit/f758139c8714244755ee2c5167ff761f9086395bThis is why the spoiler image gets two slashes in its src attribute and fails to show. The reason it does show on the main lainchan instance, which runs in a jail:
https://lainchan.org/test/res/528.html#1240is that their instance-config.php, which is not on github, sets $config['root'] to the empty string, which goes against the config.php documentation for $config['root'].
The correct solution for leftypol is to remove the leading slash from $config['spoiler_image']. The same chain of reasoning applies to $config['image_deleted'], which should also drop the leading slash.
And let's try to keep this thread as clean and focused as possible. Generic feedback can go into >>30356.
>>1255https://github.com/towards-a-new-leftypol/leftypol_lainchan/issues/39your spoiler image was fixed in instance-config, which overrides config since the devs have made the choice to leave config alone.
see bottom commits
>>1262I tried splitting my post into smaller chunk in this thread
https://leftypol.org/leftypol/res/31976.html but still getting the same error :/
>>1267Ah I see
>>1269thanks for the pastebin link, I'll just respond to him with the link
>>1273We are working on it.
>>1266Please bear with us, the tech team has been informed, however they will only be available later today.
>>1277Oh shit thanks alot.
This board just lacks flag to be perfect then.
>>1286I like it. I would prefer the box be 80% width placed in the center rather than full width, but that's personal taste.
What if the blue/purple accents were made red?
>>1286Very nice.
We should find something to fill that [news] gap though
You can get posts with non-ASCII bodies to go through cleanly
>>1014 by putting "workaround" into the Subject field, or any other non-empty and completely ASCII string. This makes slugify() use the subject and leave the body alone.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/27cfc70a57737f2fbb620b9543d688a80c0ac48a/inc/functions.php#L2709❤
失楽園 渡辺 淳一
>>1281nice thank you
>>1286a beaut she is, but i agree with
>>1288 that the purple accents would look better in red or white
>>1297ooo fancy
also, are there plans for an onion link ?
Iframes have been removed from the homepage. The side bar will no longer "follow" you when you click on a board from the home page. We are of course still working on a new home page as you can see here
>>1297 or >>33088
$ ffprobe -v quiet -print_format json -show_format -show_streams 1609284326207.mp4
{
"streams": [
{
"index": 0,
"codec_name": "h264",
"codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"profile": "Main",
"codec_type": "video",
"codec_time_base": "1001/60000",
"codec_tag_string": "avc1",
"codec_tag": "0x31637661",
"width": 854,
"height": 480,
"coded_width": 854,
"coded_height": 480,
"has_b_frames": 2,
"sample_aspect_ratio": "1:1",
"display_aspect_ratio": "427:240",
"pix_fmt": "yuv420p",
"level": 31,
"color_range": "tv",
"chroma_location": "left",
"refs": 1,
"is_avc": "true",
"nal_length_size": "4",
"r_frame_rate": "30000/1001",
"avg_frame_rate": "30000/1001",
"time_base": "1/30000",
"start_pts": 990,
"start_time": "0.033000",
"duration_ts": 236250,
"duration": "7.875000",
"bit_rate": "1592969",
"bits_per_raw_sample": "8",
"nb_frames": "236",
"disposition": {
"default": 1,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0
},
"tags": {
"language": "eng",
"handler_name": "Video Media Handler"
}
},
{
"index": 1,
"codec_name": "aac",
"codec_long_name": "AAC (Advanced Audio Coding)",
"profile": "LC",
"codec_type": "audio",
"codec_time_base": "1/48000",
"codec_tag_string": "mp4a",
"codec_tag": "0x6134706d",
"sample_fmt": "fltp",
"sample_rate": "48000",
"channels": 2,
"channel_layout": "stereo",
"bits_per_sample": 0,
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/48000",
"start_pts": 0,
"start_time": "0.000000",
"duration_ts": 375840,
"duration": "7.830000",
"bit_rate": "128010",
"max_bit_rate": "128010",
"nb_frames": "367",
"disposition": {
"default": 1,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0
},
"tags": {
"language": "eng",
"handler_name": "Sound Media Handler"
}
}
],
"format": {
"filename": "1609284326207.mp4",
"nb_streams": 2,
"nb_programs": 0,
"format_name": "mov,mp4,m4a,3gp,3g2,mj2",
"format_long_name": "QuickTime / MOV",
"start_time": "0.000000",
"duration": "7.842000",
"size": "1703266",
"bit_rate": "1737583",
"probe_score": 100,
"tags": {
"major_brand": "isom",
"minor_version": "512",
"compatible_brands": "isomiso2avc1mp41",
"encoder": "Lavf58.45.100"
}
}
}
"codec_type" is "audio" or "video" and should be used instead of 'codec_name' to locate the first video and optional first audio stream.
>>1326Gayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy.
I mean, or zero-day was, like, not even a week ago.
>>1331This is false. The actual numbers they average is more around 450.
Furhtermore, lurkers do not count. You can have 1000 people looking but if no one is posting then you might as well not even be keeping count. FAce it, you faggots are done. Fuck space.
>>1323>>1325Here is some code that locates tracks by type and allows audio before video.
>>1306 #63
http://0x0.st/-rO5.txtThe checks that didn't involve a hardcoded track order were left alone. Don't expect this to work with an ancient ffprobe.
>>1354I think mlpol.net did, not certain.
>>1355Mod spotted
>>1358YES YES YES
GODSPEED YOU BASED ANONS.
Wow I was gone for a few days and returned to some massive improvements! Good work comrades! So proud of you all!
The theme looks amazing, flags are numerous, onion* is up and running! Be sure to take a break now over New Years, you definitely deserve it.
* Bug-report:
http://wz6bnwwtwckltvkvji6vvgmjrfspr3lstz66rusvtczhsgvwdcixgbyd.onion/leftypol/ shows a "Connection not secure" warning, with the clarification "Parts of this page are not secure (such as images)", but this isn't show on all pages, for example when I opened this thread /ttg/ thread the error was gone, same as when I open webms in new tabs.
>>1354GETchan has it. No account needed
>>1363Doesn't lainchan has an autorefresh setting? If not then you're right we will have to implement it.
ak-47AK-47 >>1363Still a great improvement in any way shape or form.
Now the last thing to do is make some banners, but the core stuff is complete.
Your hard work and dedication to this has been remarkable, literally bringing this place on par with Bunkerchan in 10 days.
sandinistaSandinista >>1364> http://wz6bnwwtwckltvkvji6vvgmjrfspr3lstz66rusvtczhsgvwdcixgbyd.onion/leftypol/ shows a "Connection not secure" warning, with the clarification "Parts of this page are not secure (such as images)", but this isn't show on all pages, for example when I opened this thread /ttg/ thread the error was gone, same as when I open webms in new tabs.Okay I have an update on this bug report:
It appears only on pages with an embedded YouTube™ video. IIRC YouTube tracks with a script pages that embed their videos, kind of similar to the Facebook Like button on standard web pages, it also implements a script/tracker on the domains in question.
I advocate removing the support for the embed in the face of this.
If your organization blocks automatic font downloads before they have a chance of getting to you, and you see placeholder hex boxes instead of the U+F023 padlock and the U+F08D thumbtack, you can fix this client-side with:
[code]
.fa-lock::before { content: "locked"; }
.fa-thumb-tack::before { content: "sticky"; }
[/code]
orange quotes of issue #31
>>1207underlining for issue #37
>>1231track order for issue #63
>>1337>>1374>>1375>>1376Two types of social contradictions - those between ourselves and the enemy (Space_ and his gang) and those among the people (average anons) themselves confront us. The two are totally different in their nature.
There is only on way, to resolve the the contradiction between ourselves and the enemy.
>>1382the site was already down
>>1384DDOS is not possible any more in the modern era of cloudflare except absolutely mammoth ddos attacks probably done by state actors.
>>1381>Can you just turn it off completely, plz?by that I mean the transparency effect
>>1385still, an be tweaked, no?
>>1401See
>>1306 and
>>1337 #63.
>>1394 >>1399To "redtext in the middle of a regular line" you can bring the heading markup
>>1393 in line with the other three markups by dropping the anchors, classes and multiline:
> $config['markup'][] = array("/(.+?)/", "<span class=\"heading\">\$1</span>");As a bit of trivia, the current headings allow |s on their line in the post form, and the |s will be silently stripped, because a gent thought | meant alternation within a character class:
> | || |||thegentoo||| || |> Author: thegentoo <[email protected]>> Date: Wed Jul 11 17:11:08 2012 -0300https://github.com/towards-a-new-leftypol/leftypol_lainchan/commit/9f4fd8e44551448a73badedb89ead9ad004c1443 And to dispel the myth
>>1256 that inc/config.php is not modified:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/commit/d34e4f682837b5f338241f48d6c68692855186a8> WIPhttps://github.com/towards-a-new-leftypol/leftypol_lainchan/commit/1596ab3421dc8c3f39959f311eda4135af650a1d
> remove ffmpeg_path from cfghttps://github.com/towards-a-new-leftypol/leftypol_lainchan/commit/77f3bf0d1693a1f531cf0a2b04e966c5f30c95eb> first commit of config fileWhile everything that can reasonably go into inc/instance-config.php should go into inc/instance-config.php, sometimes there are things that are better done in inc/config.php.
>>1415I make plenty of posts here and never get that error.
What the fuck are you doing different?
>>1418NTA but i also got that error message, once.
that anon is probably using a vpn or something
>>1404Yes. (You)s are on their way real soon. Remembering flags would be nice. It's not planned. I'll try to remember to open an issue asap so it doesn't get forgotten.
>>1406> $config['markup'][] = array("/(.+?)/", "<span class=\"heading\">\$1</span>");This is missing a '/m', right? To do multiple red texting in the same line. Plz confirm.
> $config['markup'][] = array("/(.+?)/m", "<span class=\"heading\">\$1</span>"); >>1422AAHHH (You)s are live
What apk? I don't want to install it tbh, but I think a guide would be nice for anyone who wants it and doesn't know about it.
HEY, TECHIES!(now that I have your attention)
>>1381>>1388FIX THE FUCKING THEME. CAN'T SEE SHIT WITH THE TRANSPARENCY EFFECT. THANK YOU. THIS FIX WILL TAKE UP LIKE 2 MINUTES OF YOUR TIME, I'M SURE.
also, plz add .mp3 upload, it came up here recently: >>34885 "Does the site do mp3 uploads?" >>1390Stop pretending to be retarded. No matter how I resize my UI, the transparancy effect still makes this shit unreadable. Also: are you actually going to try to "prove a point" by screencapping your posting window having the background of clear space? Nigga, I'm trying to post here. Fuck you.
>>1426>>1427To fix this, add something like the following to the "gentoochan.css" file:
#quick-reply table { background: #f0f0f0; }
>>1431>I really liked the feature on 8ch where the site automatically translated "- -" to "–"…lol, it's already working.
disregard my comment and thanx for your efforts
>>1432i'm telling the mods what to do dumbfuck
calm the fuck down
>>1420> This is missing a '/m', right? To do multiple red texting in the same line.No. The effect of the 'm' flag, PCRE_MULTILINE, was to make the ^ and $ anchors match around every embedded newline, instead of only at the ends of the whole string. With the removal of ^ and $ the 'm' flag became useless, so it was dropped. You can check in config.php that the 'm' flag is already absent from the other three markups, for the same reason.
A line such as:
> a b c d ewill be parsed correctly into two headings by the regex given in
>>1406 due to the lazy/reluctant iteration of '.+?', which causes a heading to extend only upto the first == that can close it.
Markup is applied with preg_replace at:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/315edca5a95f064016e4798f0b8122bb38dc89da/inc/functions.php#L1964and you can directly verify the effect:
> $ php7.2 -r 'var_dump (preg_replace ("/(.+?)/", "<span class=\"heading\">\$1</span>", "a b c d e"));'string(67) "a <span class="heading">b</span> c <span class="heading">d</span> e"
Pattern Modifiers:
https://www.php.net/manual/en/reference.pcre.pattern.modifiers.phplazy quantifiers:
https://www.php.net/manual/en/regexp.reference.repetition.phporange quotes for issue #31
>>1207underlining for issue #37
>>1231track order for issue #63
>>1337 >>1439Test
ދިވެހި ބަހުގެ އަކުރު
>>1439Leftypol serves vanilla ASCII 0x20 spaces in >>35096 which is not informative.
[code]
000232b0 6c 2f 72 65 73 2f 32 33 33 34 37 2e 68 74 6d 6c |l/res/23347.html|
000232c0 23 71 33 35 30 39 36 22 3e 33 35 30 39 36 3c 2f |#q35096">35096</|
000232d0 61 3e 3c 2f 70 3e 20 20 20 20 20 20 20 20 3c 64 |a></p> <d|
000232e0 69 76 20 63 6c 61 73 73 3d 22 66 69 6c 65 73 22 |iv class="files"|
000232f0 3e 20 20 20 20 3c 2f 64 69 76 3e 20 20 20 20 20 |> </div> |
00023300 20 20 20 20 3c 64 69 76 20 63 6c 61 73 73 3d 22 | <div class="|
00023310 62 6f 64 79 22 20 3e 20 20 20 21 20 20 20 20 20 |body" > ! |
00023320 20 20 20 20 20 20 20 20 20 2e 20 20 20 20 20 20 | . |
00023330 2e 3c 62 72 2f 3e 3c 61 20 6f 6e 63 6c 69 63 6b |.<br/><a onclick|
00023340 3d 22 68 69 67 68 6c 69 67 68 74 52 65 70 6c 79 |="highlightReply|
00023350 28 27 33 35 30 38 32 27 2c 20 65 76 65 6e 74 29 |('35082', event)|
00023360 3b 22 20 68 72 65 66 3d 22 2f 6c 65 66 74 79 70 |;" href="/leftyp|
00023370 6f 6c 2f 72 65 73 2f 33 35 30 38 32 2e 68 74 6d |ol/res/35082.htm|
[/code]
Please provide a hexdump of that Comment
before it was posted.
The static paths in the catalog are only partially correct. This line is correct:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/315edca5a95f064016e4798f0b8122bb38dc89da/templates/themes/catalog/theme.php#L375> $post['file'] = $config['root'] . $config['image_deleted'];It prepends the root, as it should, and as happens in
>>1255 templates/post/image.html with the "{{ config.root }}{{ config.spoiler_image }}" concatenation.
This line is almost correct:
> $post['file'] = '/' . $config['spoiler_image'];except that it uses a hardcoded '/' for the root. That hardcoded '/' needs to be replaced with $config['root'].
The two lines that both look like:
> $post['file'] = $config['image_deleted'];are wrong. Both need to prepend the root, and become:
> $post['file'] = $config['root'] . $config['image_deleted'];The commits that introduced the problem are:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/commit/14cd12ff2a52afcbf84d15816b21cc828c7fef00> Author: marlencrabapple <[email protected]>> Date: Wed Sep 17 16:15:18 2014 -0700https://github.com/towards-a-new-leftypol/leftypol_lainchan/commit/cff2af99d5afb3dadd54152b1502c4d36d309dd7> Author: Ian Bradley <[email protected]>> Date: Tue Sep 16 13:10:54 2014 -0700Another Anon made a "Posting doesn't work for me" thread in meta, and its entry on the meta catalog page, which fails to show the deleted.png image, currently serves as the test case that exposed this issue.
The reason the same image fails to show inside the thread
>>>/meta/979 and on the meta index page is this line in templates/post/fileinfo.html:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/315edca5a95f064016e4798f0b8122bb38dc89da/templates/post/fileinfo.html#L8> <img class="post-image deleted" src="{{ config.image_deleted }}" alt="" />It needs to prepend the root, as is done in
>>1255 templates/post/image.html, and become:
> <img class="post-image deleted" src="{{ config.root }}{{ config.image_deleted }}" alt="" />This fileinfo.html issue is already fixed in vichan by prepending the root:
https://github.com/vichan-devel/vichan/commit/0b84fc26d691d90425787d126947303d4b9add91The commit that introduced this problem is:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/commit/c483e1258cb5d168812a6e509e982a172f6c36c6> Author: copypaste <[email protected]>> Date: Sun Apr 27 15:48:47 2014 +0200orange quotes for issue #31
>>1207underlining for issue #37
>>1231track order for issue #63
>>1337redtext for issue #78
>>1406 >>1438A small 300k mp4 test file for #63.
>>1337 >>1306NSFW
http://0x0.st/-sqz.mp4>>1473We already have a matrix chat. If you're talking about a self-hosted one, I'd say it's more likely than not. XMPP I don't see it happening anytime soon, tbh.
The link:
https://app.element.io/#/room/!vdWmErwFTxUwRiefpe:matrix.orgThis is the vetting channel btw, just to avoid spammers.
>>1483You could start a thread on /tech/ for sharing custom css. You could edit one of the pre-existing styles (it's not super hard to learn how to style simple stuff). You could search online for styles for tinyboard or vichan.
You can use the [Options] tab at the top right to put your custom css. You can also use something like the Stylish add-on.
>>1481Yay
Make it optional though
Is there currently a way to download files with the original filename like on Bunkchan where you just click on the file's link? It's impossible to copy some of the names when saving from here because they're so long.
>>1398>Why aren't you using the leftypol kuroba fork?Sorry, I have a shitty phone with little storage, plus I didn't know how to set it up. I browse on PC most of the time though.
>>1487To the users
>>1491A way of reliably bug test this is by going to
http://wz6bnwwtwckltvkvji6vvgmjrfspr3lstz66rusvtczhsgvwdcixgbyd.onion/leftypol/catalog.htmland just refreshing. You will see that img.youtube.com keeps reconnecting, since there are now several youtube embed trackers across the entirety of the /leftypol/ catalog.
We don't need this, YouTube embed is not an essential feature. We've obviously been able to go about without it before just fine, I think we're able too, as well.
Text file upload:
> Undefined index: txt_file_thumbnail in /srv/http/lainchan.leftypol.org/post.php at line 1142https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/5ef52b3c71763defc7d551ebd27157e98a0d89fb/post.php#L1142> else if ($file['extension'] == "txt" && $config['txt_file_thumbnail']){You need to set $config['txt_file_thumbnail'], in whichever config you like, to either true or false, just set it.
Since "PDF file thumbnail generation" is disabled by default with a false setting rather than an absent setting:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/5ef52b3c71763defc7d551ebd27157e98a0d89fb/inc/config.php#L1882> $config['pdf_file_thumbnail'] = false;it would make little sense to resort to isset.
track order for issue #63
>>1337root-relative paths for catalog and fileinfo
>>1446>>1494As far as I understand HTTPS for exit onion service exit nodes are redundant (and rare, the only one I've seen that does it is DuckDuckGo).
But for normal tor usage, browsing the clear web, HTTPS is important.
>>903Can mods plz ban and warn this post or point me to one that was?
I'm trying to display ban/warn messages in the mobile app
gentooGentoo A quick fix to "download files with the original filename like on Bunkchan"
>>1488 #104 is to change the text link line:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/5ef52b3c71763defc7d551ebd27157e98a0d89fb/templates/post/fileinfo.html#L10> <p class="fileinfo">File: <a href="{{ config.uri_img }}{{ file.file }}" target="_blank">{{ file.file }}</a> <span class="details">by replacing the target attribute with a download attribute set to the same expression that generates the full file name:
> <p class="fileinfo">File: <a href="{{ config.uri_img }}{{ file.file }}" {% if file.filename %}download="{{ file.filename|e|bidi_cleanup }}"{% else %}target="_blank"{% endif %}>{{ file.file }}</a> <span class="details">However, with this quickfix the user is responsible for the sanity of the file name, and for its compatibility with the filesystem.
track order for issue #63
>>1337root-relative paths for catalog and fileinfo
>>1446text file upload
>>1495>>1501:)
<orange text works nowAlso slurs like
faggot are automatically striked-through. That's
a joke.
Don't
angry text everywhere
about why
that's oppressive.
~~ to strikethrough
== to red text (but now not only at the beginning of the line)
__ to underline
>>1512IP counts per thread will be done soon. It's a small change. I'm just too tired to put in work today. Plus I have some personal stuff I need to do and I can't justify working on the site before getting that done.
PPH and recent IPs I was thinking of implementing after the homepage is done.
Graphs, idk, I don't see them happening soon to be completely honest. We could perhaps make an API and have let people use the data?
One of us is looking into integrating a cytube instance into the page. I think that's a more useful feature.
I'll be working on this feature next:https://github.com/towards-a-new-leftypol/leftypol_lainchan/issues/104(it's a one line change, most probably)
The IP count per thread is also an easy fix. I'll maybe do that next.
Then I was thinking of adding banners:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/issues/15I have no idea how it's done in lainchan, but it didn't work here. I had to rewrite the banners thing and that needs some eyes. It won't be cached which kinda sucks, but I think having banners is pretty cool, and I think it's worth the load on the server, which will probably be rather minimal.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/issues/80Someone asked for this before, I wasn't planning on working on it soon, but I recently got annoyed with the small font size. It's hard to read for me, I'm sure it's similar for others. I think tweaking this a little would be good for everyone's eyes. A comrade said: "I personally think this should be left as a choice for the end user via custom User CSS". I agree with more drastic font changes, but a lot of people won't use it, and improving the default readability is an important aspect of a leftist website, since there's frequently long posts.
There are some mobile issues. We have an absolutely based mobile app for android, if you don't have it, you should definitely check it out, but comrades who use iPhones unfortunately are deprived of such privilege. I wanted to look into some built-in fixes for improving the mobile experience for phone posters.
You can look at the issues we have here:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/issuesIf there's something you want fixed or added and it isn't there, you can bet it won't be done.
So please do tell us.>>1513My
personal opinion is that we should add word filters if we ever get undesirables. The uhiger filter is honestly my favorite of all time, and I confess that I can't spell that word, so when speaking about the ethnic group, I sometimes wrote nigger so that it got changed to the correct word.
>>1513I'm not so sure about these:
>Degeneracy= fun. Discipline>hedonism
>Soros= Our Glorious Leader No, the dude is a real, existing, influential ultraliberal bourg.
>Cultural Marxism= I haven't read Adorno Better to conflate it with what it is: nazi propaganda
>tankie= MLs[…]Don't intentionally play into dumbing down terminology. A tankie has always been a specific type of ML, whether contemporary Twitter radlibs know about it or not.
>Productive Forces= Gallons of Semen That's dumb, just no.
>Race War= Masturbatory FantasyThis would need to be more derisive and condescending. A nazi could just own up to getting aroused the thought of a race war. Actually, writing this out reminded me of some of the practices of the Imperial Japanese during WWII, which were, to say the least, very 'ecstatic' in their celebration of genocidal violence.
>I.Q levels= Good Boy Points>Race Realism= Debunked Pseudo ScienceThese were good.
Also bring back some of the popular ones like "Agent Kochinski", just to continue to fuck with that piece of shit's internet-relevancy in terms of mentions/indexing while the ITG people just continue to levy hate his way.
Also maybe filter Dengism, Xism, Maupinism, Caleb Maupin Thought, Socialism with Chinese Characteristics -> Socialism with Billionaire Characteristics.
Arabic text is removed
>>1439 from posts due to this line in strip_combining_chars:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/5ef52b3c71763defc7d551ebd27157e98a0d89fb/inc/functions.php#L2267> if ( ($ord >= 768 && $ord <= 879) || ($ord >= 1536 && $ord <= 1791) || ($ord >= 3655 && $ord <= 3659) || ($ord >= 7616 && $ord <= 7679) || ($ord >= 8400 && $ord <= 8447) || ($ord >= 65056 && $ord <= 65071))The limits converted to hex:
[code]
>>> s = 'if ( ($ord >= 768 && $ord <= 879) || ($ord >= 1536 && $ord <= 1791) || ($ord >= 3655 && $ord <= 3659) || ($ord >= 7616 && $ord <= 7679) || ($ord >= 8400 && $ord <= 8447) || ($ord >= 65056 && $ord <= 65071))'>>> import re>>> ' '.join ('{:06x}'.format (int (mo.group ())) for mo in re.finditer ('[0-9]+', s))'000300 00036f 000600 0006ff 000e47 000e4b 001dc0 001dff 0020d0 0020ff 00fe20 00fe2f'
[/code]
The relevant unicode blocks:
[code]
6 000300 - 00036F 112 COMBINING_DIACRITICAL_MARKS
12 000600 - 0006FF 256 ARABIC
31 000E00 - 000E7F 128 THAI
67 001DC0 - 001DFF 64 COMBINING_DIACRITICAL_MARKS_SUPPLEMENT
73 0020D0 - 0020FF 48 COMBINING_MARKS_FOR_SYMBOLS
156 00FE20 - 00FE2F 16 COMBINING_HALF_MARKS
[/code]
Four COMBINING_* blocks are removed, along with five characters from THAI and the entire ARABIC block. The five THAI characters are:
[code]
U+0E47 Mn THAI CHARACTER MAITAIKHU
U+0E48 Mn THAI CHARACTER MAI EK
U+0E49 Mn THAI CHARACTER MAI THO
U+0E4A Mn THAI CHARACTER MAI TRI
U+0E4B Mn THAI CHARACTER MAI CHATTAWA
[/code]
However, strip_combining_chars is only applied to:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/5ef52b3c71763defc7d551ebd27157e98a0d89fb/post.php#L803> $post['name'] = strip_combining_chars($post['name']);> $post['email'] = strip_combining_chars($post['email']);> $post['subject'] = strip_combining_chars($post['subject']);> $post['body'] = strip_combining_chars($post['body']);which means that leftypol already allows arabic characters in post file names, such as this post >>32563 in the webm thread.
If a decision is made to allow arabic characters in posts, this can be implemented by removing the arabic block limits
> ($ord >= 1536 && $ord <= 1791)from strip_combining_chars.
The commit that stripped arabic characters is:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/commit/126ee42b9dffe262457177c5dbb7ffa2db170763> Author: czaks <[email protected]>> Date: Fri May 6 14:34:42 2016 +0200> better rules for stripping combined chars, based on 45c0d327619 by @ctrlcctrlvtrack order for issue #63
>>1337root-relative paths for catalog and fileinfo
>>1446text file upload
>>1495original file names for issue #104
>>1499>>903can't report :
>Undefined index: id in /srv/http/lainchan.leftypol.org/inc/functions.php at line 2753also why isn't there a report button directly on the post
this site supposedly uses the same code as lainchan yet many of the formating features are missing
from
https://www.lainchan.org/faq.html: [b] makes it bold [/b]
[i] makes it italic [/i]
[spoiler]text [/spoiler] makes it spoiler
[code]text [/code] makes it code
To specify language for the syntax highlighting. Use something like the example below
[code]
lisp
(defun foo ()
(if (mapcar (lambda (x) (format t "~a " x)) '(is this not infuriating?))
t
nil))
[/code]
>>1522Really? I could and can now. Do you have an updated TB and visit the link with a slash at the end? That might be what bugs stuff out, if I visit
http://wz6bnwwtwckltvkvji6vvgmjrfspr3lstz66rusvtczhsgvwdcixgbyd.onion/leftypolfor example, it makes it seem like I can't connect, but if I add a last slash
http://wz6bnwwtwckltvkvji6vvgmjrfspr3lstz66rusvtczhsgvwdcixgbyd.onion/leftypol/I can.
Maybe this helped.
>>1513Maybe Race War = WoW fanfiction?
I agree though that most word filters are unnecessary until those words are spammed
>>1521The loop parameter is respected in player.php:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/5ef52b3c71763defc7d551ebd27157e98a0d89fb/player.php#L23> <video controls<?php if ($loop) echo ' loop'; ?> src="<?php echo htmlspecialchars($v); ?>">but image.html hardcodes the initial loop parameter to 1:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/5ef52b3c71763defc7d551ebd27157e98a0d89fb/templates/post/image.html#L3> {{ config.root }}player.php?v={{ config.uri_img }}{{ post.file }}&t={{ post.filename|e('url') }}&loop=1You can toggle the loop parameter of all videos on a page, such as the >>32434 webm thread, with:
Array.from (document.querySelectorAll ("div.file > a.file")).filter (e => e.hasAttribute ("href")).map (e => [e, e.getAttribute ("href").match (/^(\/player[.]php[?].+&loop=)([01])$/)]).filter (e_match => e_match [1] != null).forEach (e_match => e_match [0].setAttribute ("href", e_match [1] [1] + (1 - e_match [1] [2])))
>>1536>>1537try this
https://pastebin.com/raw/ir9adb94I threw it together really quickly by just making some fixes to the GETchan stylesheet, so it might have some issues. let me know if there are.
>>1540made some fixes
https://pastebin.com/raw/KtfpjPSFit's strange, it's almost like the leftypol HTML changed overnight.
>>1542We're open to PRs. I'm really tired and very busy with work and other personal matters right now.
There's a js module called filesave or something like that. It's supposed to make the filename clickable. You'd just need to test it because the ajax version got changed and some plugins need to be updated, and also some don't work properly.
>>1543I haven't taught myself to do git, if it was a big dealbreaker I'd do it myself though. Only just noticed it and it's the only feature that seems to be lacking from the site at this point. Don't worry about it.
>>1541>it's strange, it's almost like the leftypol HTML changed overnight.Spoogy
>>1542And here's what you can do right now from the client side:
Array.from (document.querySelectorAll ("div.file > p.fileinfo")).map (e => [e.querySelector ("a[target=_blank]"), e.querySelector ("span.details > span.postfilename")]).filter (a_span => (a_span [0] != null) && (a_span [1] != null)).forEach (a_span => [a_span [0].removeAttribute ("target"), a_span [0].setAttribute ("download", a_span [1].hasAttribute ("title") ? a_span [1].getAttribute ("title") : a_span [1].innerText)])
Clicking a text link like 1608608621350.gif will give you the original file name like overmind.gif.
For #110 PDF thumbnails set
> $config['pdf_file_thumbnail'] = true;> $config['djvu_file_thumbnail'] = true;and have imagemagick installed for the 'convert' command.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/5ef52b3c71763defc7d551ebd27157e98a0d89fb/post.php#L1079track order for issue #63
>>1337root-relative paths for catalog and fileinfo
>>1446text file upload
>>1495original file names for issue #104
>>1499arabic characters
>>1517>>1547>Can you guys post user statistics for today? I feel like there was a big uptickLol. I have the same strange feeling.
>>1552Thanks, mate. Btw, the compiling of previous issues that are still unresolved is also very useful.
>>1549I'm a proxyfag and I was here before new year. In fact, the ease of posting over Tor was a feature that made me use this site more.
Adding a blocklist ready to use when /pol/ decides to raid is a good idea but always having it up hurts the community IMO.
gentooGentoo >>1552Added issues on github for:
text file upload
arabic text
root relative path for catalog and file info
>>1562also coming in hot:Fix for the TXT file upload issue.
>>1495Original file names download
>>1499Users won't be able to delete their own threads soon (this has been an issue already). Users can still freely delete their own posts, as long as they have the password.
That's all for today folks.
>>1563Thanks.
The PR in #126 will only work for those users who visit the site with JS enabled, whereas the version in
>>1499 will work for all users of the site.
>>1572ahhh, that explains it
fuuuuuckkkk
>>1574>>1575So, it is looking more like the tor network is under attack:
https://lists.torproject.org/pipermail/tor-relays/2021-January/019201.htmlPeople are speculating this is a DDOS attack. Hence why the Network operators can't open up the network. I am not affiliated with tor, or, an expert on the network so take what I am saying with a grain of salt. Information is coming out in real time, aswell. How long the network is gonna be down is any ones guess at this point.
>>1583Why wouldn't they? Tor has been a thorn in the side of the glowies for a decade and a half and they are probably using the current state of the world as an excuse to assault the network. NBC was running shit about the "mobs" who "attacked the capital" using
"THE DARKNET" to organized their attempted coup.
>>1584Source on that NBC darknet thing?
also, it's unknown if the traffic hitting the dirauths is maliciously motivated, and there's no evidence that the traffic overload is actively trying to hurt v3 onions….
I think we'll just have to wait for more information on the situation
>>1586I'll have to find the news segment.
Also, They had said it was speculation, but, that's a weird thing to say about the failure of consensus. Did you read that link
>>1576 Our own self-hosted cytube instance has been implementedhttps://tv.leftypol.orgFeel free to create an account and your own channel.Hello. I'm part of bunkerchan old cytube Admin team before I stopped being active due to depression and irl stuff. I wanted to know if you guys want to keep using the existing channel or create a new channel? I'm asking you guys here because we are doing so much direct development for ourselves here and if someone wanted to explore doing further customization and stuff with cytube or whatever similar platform we wanted to use I'm willing to let anyone with that creative itch to run it.
Cytube currently isn't directly allowed to embed twitch videos due to twitch blocking the domain from embedding their streams and now with their whole new bullshit of being unable to block ads and stuff. So if you guys want to host and maintain a server for our purposes and stuff. Cytube has all the information here:
https://github.com/calzoneman/syncIf you guys have any recommendations or suggestions for us to use a different sync tube solution please post below.
Current cytube used from bunkerchan:
https://cytu.be/r/bunkerchantemp For pdf thumbnails
>>>/anime/5736 and txt thumbnails you may need to change rights="none" to rights="read" on the lines with pattern="PDF" and pattern="@*" in the IM policy file:
$ convert -list policy | grep '^Path'
Path: /etc/ImageMagick-6/policy.xml
Path: [built-in]
You can then set $config['txt_file_thumbnail'] to true. Since the default theme here is dark, as it should be, the txt thumbnail colors can be swapped with xc:black and -fill white.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/663233f34d1346239d7d5239ad84f25cfbef2ab2/post.php#L1148To use a monospaced font for txt thumbnails add -font Liberation-Mono. If you don't have Liberation-Mono use one of the monospaced fonts that IM is aware of:
$ convert -list font | grep -ie mono
To verify:
$ wget -O input.txt '
http://www.gutenberg.org/files/10/10.txt'$ convert -thumbnail x300 xc:black -pointsize 12 -fill white -font Liberation-Mono -annotate +15+15 @input.txt text.png
+ original file name downloads for non-JS users
>>1499in issues but not applied yet:
+ track order for #63 webm error 2
>>1337+ arabic characters for #125
>>1517+ root-relative paths for #124 deleted.png
>>1446>>1593PDF thumbnail generation worked in a dev environment. We'll need to check why it isn't working on prod.
TXT generation did not work properly, pic related.
Issue tracking txt thumbnail support.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/issues/129Added this new issue to track the non-js filename stuff. The other issue was as a mitigation to get the feature to as much people as possible as soon as possible via the already existing js module.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/issues/128tankieTankie >>1594> #128 #129Thanks. A small note about:
> This issue tracks removing that js module and instead replacing it with a non-JS solution.There's no incompatibility between the two so there's no problem with leaving js/download-original.js active as well, should that be desired.
PDFs are failing to produce a thumbnail.
Please be patient while this is getting fixed.
>>1598:) glad you like it comrade
>>1603based
can you consider adding post formatting guide page somewhere? I experienced existential horror when
spoiler didn't work with usual [spoiler] tag
Thanks for deploying 87b0e972ee4e2c668a3f7019d47363d7e3fba411
>>1446. The image
>>>/meta/979 showed up in the thread, catalog and index.
>>1592issues connecting again, as of a few hours ago it seems like consensus could not be achieved, problems with v3 onions is still ongoing right now
>>1587>>1588hmmm… very interesting…. at the risk of coming off as a schizo i'm not going to say it's a glowop but still is interesting, the CIA uses Tor though so it's probably not them
Some retard made a thread for this. I'm re-posting it here and deleting the thread.
>Your shitty navigation bar fucks with the position of backlinked posts. You need to account for this so when a backlink is clicked, the top of the post isn't hidden under the navigation bar. Bunkerchan does this just fine, so copy their CSS.>On another note, you don't seem to have a public repository for this stuff which makes me think y'all are authoritarian as fuck and don't want to democratize this site. CRINGE!!(attached pic is from OP)
>>1628heh. I wondered when someone was going to notice. Thanks for reporting.
>>1626>>42702Oooh that sounds nice.
>>1625That PR just makes it so that the new posts don't go below the unique ip counter.
>>1629ty bb
>>1630>Oooh that sounds nice.I don't know if it will fix it but it's the easiest thing to do to attempt to fix it lol. If it doesn't someone has to install ffmpeg, but it appears to be on the main repository so it should work just by turning it on? Maybe the comment was written before it was included or something.
I think 'js/options.js' needs to be moved above 'js/local-time.js' and any other script that adds to the options dialog.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/d43f18813e137b1dab45bac91d8222da9d81f6e5/inc/instance-config.php#L317I would open an issue/pr myself but my github account is tied to my irl identity.
>>1641NTA. You could make a PR with this single-line change
>>1499 to templates/post/fileinfo.html that fixes #128.
>>1641Bug: these checkboxes don't do anything
I'm pretty sure it's because options.js is loaded after other scripts that depend on it. The fix should be to move this line (317):
$config['additional_javascript'][] = 'js/options.js';
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/d43f18813e137b1dab45bac91d8222da9d81f6e5/inc/instance-config.php#L317above this line (298):
$config['additional_javascript'][] = 'js/local-time.js';
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/d43f18813e137b1dab45bac91d8222da9d81f6e5/inc/instance-config.php#L298 >>1627Why are mods
not replying to this in any way? Now with the overboard catalog
this bug is constant, for the majority of users. (picrel)
The majority of leftypol.org users right now have a simultaneous data stream outgoing to Google servers collecting details of their posting on this site for no real reason other than "embed b cool" (what, you can't mousewheel click a link for it to open in another tab and watch it there, you fuck?).
For #147
>>1653 change this line in catalog.html:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/0eb4059a7c2debc89fe4dd404f87d25d3c33adf6/templates/themes/catalog/catalog.html#L68> <strong>R: {{ post.replies }} / I: {{ post.images }}{% if post.sticky %} (sticky){% endif %}{% if post.locked %} <span class="fa fa-lock"> </span>{% endif %}</strong>by adding post.sage and config.reply_limit tests:
> <strong>R: {{ post.replies }} / I: {{ post.images }}{% if post.sticky %} (sticky){% endif %}{% if post.sage %} (sage){% endif %}{% if (config.reply_limit > 0) and (post.replies >= config.reply_limit) %} (full){% endif %}{% if post.locked %} <span class="fa fa-lock"> </span>{% endif %}</strong>Thread views have a bumplocked test:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/0eb4059a7c2debc89fe4dd404f87d25d3c33adf6/templates/post_thread.html#L34> {% if post.bumplocked and (config.mod.view_bumplock < 0 or (post.mod and post.mod|hasPermission(config.mod.view_bumplock, board.uri))) %}For us proles:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/0eb4059a7c2debc89fe4dd404f87d25d3c33adf6/inc/config.php#L1508> // View whether a thread has been bumplocked ("-1" to allow non-mods to see too)> $config['mod']['view_bumplock'] = MOD;There's no post.bumplocked, it's called post.sage:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/0eb4059a7c2debc89fe4dd404f87d25d3c33adf6/templates/posts.sql#L21> `sage` int(1) NOT NULL,and for OPs it acts as a bumplock:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/0eb4059a7c2debc89fe4dd404f87d25d3c33adf6/post.php#L1360> if (!$post['op'] && strtolower($post['email']) != 'sage' && !$thread['sage'] && ($config['reply_limit'] == 0 || $numposts['replies']+1 < $config['reply_limit'])) {> bumpThread($post['thread']);Using both +1 and a strict inequality is wrong and makes threads unable to bump on an unsaged final reply, so the +1 needs to go.
The img.src is wrong in the usual way
>>1446https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/0eb4059a7c2debc89fe4dd404f87d25d3c33adf6/templates/post_thread.html#L38> <img class="icon" title="Bumplocked" src="{{ config.image_bumplocked }}" alt="Bumplocked" />and needs to prepend the root. Same for the post.sticky, post.locked and post.cycle blocks.
While you have a locked.gif in static, there's no sage.png and sticky.png.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/0eb4059a7c2debc89fe4dd404f87d25d3c33adf6/inc/config.php#L1222in issues but not resolved yet:
+ pdf and txt IM rights #129
>>1593+ original file name downloads for non-JS users #128
>>1499+ track order #63 webm error 2
>>1337+ arabic characters #125
>>1517+ semirand omitted counts #136
>>1635>>1665Using leftypol.org or the onion url?
Can you access other sites?
The onion network has been experiencing attacks and decreased reliability lately.
>>1665It appears other onion services are currently up and ours is currently down.
I've notified the sysadmins.
For pdf thumbnails #110, after setting the IM policy
>>1593 rights, it seems IM will communicate with the ghostscript delegate through temporary files, so the same temporary location should be available to both. If nix isolates packages to the point where such sharing of the temporary location is not possible, then a workaround appears to be to resort to direct invocation of gs for pdf thumbnailing, bypassing IM.
Temporary file issues:
https://forum.enfocus.com/viewtopic.php?t=261https://docs.filerun.com/imagemagickhttps://legacy.imagemagick.org/discourse-server/viewtopic.php?t=15960I'm posting it here instead of /tech/ because I mainly want to convey this message to our People's Champions.
It may be worth considering the need to get a Gitlab Community Edition "mirror" for our repos if Microsoft's Github follows the footsteps of its partners (Facebook and Twitter) and starts repressing projects on a
political basis; along "extremist" lines (a broad brush-stroke which pretty certainly would catch us too).
Gitlab CE or GNU Savannah, by contrast, have two advantages for them. 1): They are not subsidiaries to mega-corporations well-known for their collaborative attitudes to the US government (see links below to post-Microsoft acquisition tech-news headlines) and 2): they're fully open source with much better ratings from libre software institutions.
Revealing recent Github controversies:https://thenextweb.com/politics/2019/10/09/github-microsoft-trump-ice-contract/https://thenextweb.com/microsoft/2021/01/12/hundreds-sign-letter-demanding-answers-after-github-fires-jewish-employee-for-calling-insurrectionists-nazis/Leftist tech article on Microsoft's acquisition of Github and wider implications and consequences:https://blog.p2pfoundation.net/are-the-digital-commons-condemned-to-become-capital-commons/2018/08/03>How to guarantee the independence of digital Commons?>For a project like Wikipedia, things would probably be different if firms like Google or Facebook answered the call launched by Katherine Maher. The Wikipedia community has strict rules in place regarding paid contributions, which means that you would probably never see 90% of the content produced by employees. Company contributions would likely be in the form of cash payments to the Wikimedia Foundation. However, economic dependence would be no less strong; until now, Wikipedia has ensured its independence basically by relying on individual donations to cover the costs associated with maintaining the project’s infrastructure. This economic dependence would no doubt quickly become a political dependence – which, by the way, the Wikimedia Foundation has already been criticised for, regarding a large number of personalities with direct or indirect links with Google included on its board, to the point of generating strong tensions with the community. The Mozilla Foundation, behind the Firefox browser, has sometimes received similar criticism. Their dependence on Google funding may have attracted rather virulent reproach and doubts about some of its strategic choices.>In the end, this question of the digital Commons’ state of economic dependence is relatively widespread. There are, in reality, very few free projects having reached a significant scale that have not become more or less “Capital Commons”. This progressive satellite-isation is likely to be further exacerbated by the fact that free software communities have placed themselves in a fragile situation by coordinating with infrastructures that can easily be captured by Capital. This is precisely what just happened [in 2018] with Microsoft’s $7.5 billion acquisition of GitHub. Some may have welcomed the fact that this acquisition reflected a real evolution of Microsoft’s strategy towards Open Source, even that it could be a sign that “free software has won”, as we sometimes hear.>But, we can seriously doubt it. Although free software has acquired an infrastructural dimension today – to the point that even a landmark player in proprietary software like Microsoft can no longer ignore it – the developer communities still lack the means of their independence, whether individually (developers employed by large companies are in the majority) or collectively (a lot of free software depends on centralized platforms like GitHub for development). Paradoxically, Microsoft has taken seriously Platform Cooperativism’s watchwords, which emphasize the importance of becoming the owner of the means of production in the digital environment in order to be able to create real alternatives. Over time, Microsoft has become one of the main users of GitHub for developing its own code; logically, it bought the platform to become its master. Meanwhile – and this is something of a grating irony – Trebor Scholz – one of the initiators, along with Nathan Schneider, of the Platform Cooperativism movement – has accepted one million dollars in funding from Google to develop his projects. This amounts to immediately making oneself dependent on one of the main actors of surveillance capitalism, seriously compromising any hope of building real alternatives.>For now, Wikipedia’s infrastructure is solidly resilient, because the Wikimedia Foundation only manages the servers that host the collaborative encyclopedia’s contents. They have no title to them, because of the free license under which they are placed. GitHub could be bought because it was a classic commercial enterprise, whereas the Wikimedia Foundation would not be able to resell itself, even if players like Google or Apple made an offer. The fact remains that Katherine Maher’s appeal for Google or Facebook funding risks weakening Wikipedia more than anything else, and I find it difficult to see something positive for the Commons. In a way, I would even say that this kind of discourse contributes to the gradual dilution of the notion of Commons that we sometimes see today. We saw it recently with the “Tech For Good” summit organized in Paris by Emmanuel Macron, where actors like Facebook and Uber were invited to discuss their contribution “to the common good”. In the end, this approach is not so different from Katherine Maher’s, who asks that Facebook or Google participate in financing the Wikipedia project, while in no way being able to impose it on them. In both cases, what is very disturbing is that we are regressing to the era of industrial paternalism, as it was at the end of the 19th century, when the big capitalists launched “good works” on a purely voluntary basis to compensate for the human and social damage caused by an unbridled market economy through philanthropy.Libre rating of git repos:https://www.gnu.org/software/repo-criteria-evaluation.html>GNU Savannah: Grade A>Gitlab: Grade C>Github: Grade F>Sourceforge: Grade FO7>>1676I was a Gitlab advocate until very recently when I found out they are quite literally funded by the CIA through In-Q-Tel.
https://www.iqt.org/portfolio/page/2/Consider something else like Gitea.
Deleting a thread
>>1685 is currently the same event as deleting a post.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/0eb4059a7c2debc89fe4dd404f87d25d3c33adf6/post.php#L276> rebuildThemes('post-delete', $board['uri']);The catalog handles 'post-delete':
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/0eb4059a7c2debc89fe4dd404f87d25d3c33adf6/templates/themes/catalog/theme.php#L41> } elseif ($action 'post-thread' || ($settings['update_on_posts'] && $action 'post') || ($settings['update_on_posts'] && $action == 'post-delete')> || $action 'sticky' || ($action 'lock' && in_array($board, $boards))) {Notice the ludicrous placement of the parens around the lock and board tests, which means the board test only applies to lock. The parens should group the || chain.
'post-delete' is guarded by $settings['update_on_posts'], which goes into the catalog theme settings editable in the mod pages, not into the config files:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/commit/cf315cf58ca93f161fc7fa1ee8adf8cde285797b#diff-24c6c21709e217835e10ed15d225b5a7a81cfc5c7f83e113fe818d6cdf2294ceR89When $settings['update_on_posts'] is set, the issue is that post deletions must eventually be followed by a rebuildThemes with 'post-delete' and the appropriate board, otherwise deleted threads will occasionally show in some themes. But inc/mod/pages.php occasionally omits this rebuildThemes call on the $originBoard when moving or merging.
A better longterm solution would be to introduce a thread-delete event for OPs, since posting is already aware of OPs with 'post-thread' versus 'post':
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/0eb4059a7c2debc89fe4dd404f87d25d3c33adf6/post.php#L1435That way themes would have the granularity of control to be able to respond to OP events but not to non-OP reply events, if they so choose. Deleting locations are already aware whether they're deleting an OP or a reply, e.g.:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/0eb4059a7c2debc89fe4dd404f87d25d3c33adf6/post.php#L233> if (isset($config['allow_thread_deletion']) && !$config['allow_thread_deletion'] && !$post['thread']) {Also note that both mod_move and mod_move_reply in inc/mod/pages.php fire the 'post' event on $targetBoard even if they happen to be creating target threads. The appropriate event if creating target threads is 'post-thread'.
in issues but not resolved yet:
+ pdf and txt thumbnails #110 #129
>>1593 >>1673 >>1675+ original file name downloads for non-JS users #128
>>1499+ track order #63 webm error 2
>>1337+ arabic characters #125
>>1517+ semirand omitted counts #136
>>1635+ bumplock and full markers #147
>>1662Who is complaining about post reporting? It works fine? Works on my machine
Also who was saying the mod log doesn't work?
https://leftypol.org/log.php?board=bhttps://leftypol.org/log.php?board=leftypol>>1699Based. Any help is appreciated.
>>1701We were made aware of point 1 today. I had no clue about point 2.
>>1699>I want to get issues cut down to maybe 20Compare #109 with #144
>>1650 and #154 with #161.
Posting from a theme that gives me PTSD.
>inb4 this was the reason I hadn't moved<well now you have no choice>>1701>IPv6The tech leftypol strikes again. A new contributor is incomparably based and has submitted a fix.
NEW THEMESNEW THEMESNEW THEMESNEW THEMESNEW THEMESNEW THEMESNEW THEMESAll user submitted.
The cache needs a little while to refresh. Try hard refreshing.
There's even a bunker-like theme!
Check the details here:
>>1711 >>1709You can simplify $ipv[46]_link_regex by taking advantage of the fact that when you have an anchor with a href with ?/IP/ you are validating the anchor text anyway, so there's no need to validate the rest of the href. PHP also allows alternate regex delimiters, like sed, so you don't need the backslash soup, e.g.:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/8ba8bbb8aa1d4c9075f757a3eb9da1b55da6b4a9/inc/mod/pages.php#L123So you can do:
$ipv4_link_regex = '@(?:<a href="\?/IP/[^"]+">)?(' . $ipv4_regex . ')(?:</a>)?@';
$ipv6_link_regex = '@(?:<a href="\?/IP/[^"]+">)?(' . $ipv6_regex . ')(?:</a>)?@';
>>1693>>1694The official booru is one of the few things that .org and .xyz administration agree on. It was same with the /leftpol/ split.
>>1695>>1696The symbol is variation of the USSC symbol. USSC being an attempt in 2015 to create a united leftist imageboard with /leftypol/, /GET/, and /ref/.
>>16972015-10-21 is the booru foundation date. /leftypol/ itself is from 2014.
If anyone wants to help us figure out a solution:
https://github.com/PietroCarrara/Clover/issues/1 We are looking to solve the issue related to posting over the app and when we raise threat levels for cloud-flair that causes phone posting to break, thank you.
To fix post quotes at the end of orangequotes
>>1721 you could add < to the lookahead class as a hack entrenching a bug, or you could put orangequotes after greenquotes where they belong and where originally suggested.
>>1207https://github.com/towards-a-new-leftypol/leftypol_lainchan/issues/31https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/11d59a91812c420d986ff0d8060201b39b4ca27c/inc/functions.php#L2184The commit that put orangequotes into $config['markup'] instead:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/commit/e32e12798ecc7290e80583e2e27eb85b6d56b431> Author: nonmakina <[email protected]>> Date: Mon Jan 4 15:59:59 2021 -0600>>1721I actually already tried that and had to fix it here:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/pull/185/commits/e936312db509c5a355b4bb1131f644556aed242aApparently mixing count and limits doesn't work well.
Feel free to throw in a PR, I'll review it ASAP.
>>1722Hadn't noticed that the quotes didn't work. Thanks for reporting it. I'll open an issue.
>>1727>>1725Tracked by this issue:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/issues/187>>1691Thanks for the feedback, as per usual.
>+ semirand omitted counts #136 >>1635In PR:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/pull/185>+ bumplock and full markers #147 >>1662In PR:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/pull/178
>+ pdf and txt thumbnails #110 #129We're using nix. PDF thumbnails worked on dev, but not on prod. So much for "reproducibility" lol. There must be an issue I'm overlooking. This is devops shit and I'm not familiar with nix, so I've been putting it off.
Could people look at this:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/issuesand tell me which issues are the most important to them?
>>1728>I actually already tried thatWe're referring to different things. See where I said "
unsorted totals"
>>1721. I was simply admiring the tech's willpower in forcing the sql to do his bidding with 2^64-1, instead of using the existing approach for index pages in index+numPosts in inc/functions.php
>>1635.
>I'll open an issue.If you're in the mood to move bugs into issues you might open one for the mp4 anon's
>>1685 zombie threads in the catalog bug as well, since one source of zombie threads is already explained in the Tifa post.
>We're using nix. PDF thumbnails worked on dev, but not on prod. So much for "reproducibility" lol. There must be an issue I'm overlooking.Printing out the $error value returned by shell_exec_error on both the pdf and txt branches might prove worthwhile.