Postmill issueshttps://gitlab.com/postmill/Postmill/-/issues2023-05-20T11:21:45Zhttps://gitlab.com/postmill/Postmill/-/issues/90Deleting submission with image results in 500 error2023-05-20T11:21:45ZJohn RupertDeleting submission with image results in 500 errorDeleting a submission that has an image attached to it, results in a "500 Internal Server Error".
Oddly enough the submission itself *does* get deleted but the image/thumbnail stays publicly accessible (and thus remains on the server). I...Deleting a submission that has an image attached to it, results in a "500 Internal Server Error".
Oddly enough the submission itself *does* get deleted but the image/thumbnail stays publicly accessible (and thus remains on the server). I'm using nginx, Node.js 16 and PHP 8.2.
This is from prod.log:
```
[2023-05-12T18:31:13.942467+00:00] request.INFO: Matched route "submission_mod_delete". {"route":"submission_mod_delete","route_parameters":{"_route":"submission_mod_delete","slug":"-","_controller":"App\\Controller\\SubmissionController::modDelete","forum_name":"random","submission_id":"60"},"request_uri":"http://mysite/f/random/60/-/mod_delete","method":"POST"} []
[2023-05-12T18:31:13.944565+00:00] security.DEBUG: Read existing security token from the session. {"key":"_security_main","token_class":"Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken"} []
[2023-05-12T18:31:13.970994+00:00] security.DEBUG: User was reloaded from a user provider. {"provider":"Symfony\\Bridge\\Doctrine\\Security\\User\\EntityUserProvider","username":"admin"} []
[2023-05-12T18:31:13.971747+00:00] security.DEBUG: Checking for authenticator support. {"firewall_name":"main","authenticators":3} []
[2023-05-12T18:31:13.971754+00:00] security.DEBUG: Checking support on authenticator. {"firewall_name":"main","authenticator":"Symfony\\Component\\Security\\Http\\Authenticator\\LoginLinkAuthenticator"} []
[2023-05-12T18:31:13.971811+00:00] security.DEBUG: Authenticator does not support the request. {"firewall_name":"main","authenticator":"Symfony\\Component\\Security\\Http\\Authenticator\\LoginLinkAuthenticator"} []
[2023-05-12T18:31:13.971815+00:00] security.DEBUG: Checking support on authenticator. {"firewall_name":"main","authenticator":"Symfony\\Component\\Security\\Http\\Authenticator\\FormLoginAuthenticator"} []
[2023-05-12T18:31:13.971829+00:00] security.DEBUG: Authenticator does not support the request. {"firewall_name":"main","authenticator":"Symfony\\Component\\Security\\Http\\Authenticator\\FormLoginAuthenticator"} []
[2023-05-12T18:31:13.971832+00:00] security.DEBUG: Checking support on authenticator. {"firewall_name":"main","authenticator":"Symfony\\Component\\Security\\Http\\Authenticator\\RememberMeAuthenticator"} []
[2023-05-12T18:31:13.971864+00:00] security.DEBUG: Authenticator does not support the request. {"firewall_name":"main","authenticator":"Symfony\\Component\\Security\\Http\\Authenticator\\RememberMeAuthenticator"} []
[2023-05-12T18:31:13.985892+00:00] php.INFO: User Deprecated: Since symfony/framework-bundle 5.4: Method "Symfony\Bundle\FrameworkBundle\Controller\AbstractController::get()" is deprecated, use method or constructor injection in your controller instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/framework-bundle 5.4: Method \"Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController::get()\" is deprecated, use method or constructor injection in your controller instead. at /var/www/Postmill/vendor/symfony/framework-bundle/Controller/AbstractController.php:130)"} []
[2023-05-12T18:31:14.005530+00:00] messenger.INFO: Sending message App\Message\DeleteImage with default sender using Symfony\Component\Messenger\Transport\Sync\SyncTransport {"class":"App\\Message\\DeleteImage","alias":"default","sender":"Symfony\\Component\\Messenger\\Transport\\Sync\\SyncTransport"} []
[2023-05-12T18:31:14.005601+00:00] messenger.INFO: Received message App\Message\DeleteImage {"class":"App\\Message\\DeleteImage"} []
[2023-05-12T18:31:14.022178+00:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Messenger\Exception\HandlerFailedException: "Handling "App\Message\DeleteImage" failed: A new entity was found through the relationship 'App\Entity\ForumLogSubmissionDeletion#submission' that was not configured to cascade persist operations for entity: App\Entity\Submission@1805. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={"persist"}). If you cannot find out which entity causes the problem implement 'App\Entity\Submission#__toString()' to get a clue." at /var/www/Postmill/vendor/symfony/messenger/Middleware/HandleMessageMiddleware.php line 130 {"exception":"[object] (Symfony\\Component\\Messenger\\Exception\\HandlerFailedException(code: 0): Handling \"App\\Message\\DeleteImage\" failed: A new entity was found through the relationship 'App\\Entity\\ForumLogSubmissionDeletion#submission' that was not configured to cascade persist operations for entity: App\\Entity\\Submission@1805. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={\"persist\"}). If you cannot find out which entity causes the problem implement 'App\\Entity\\Submission#__toString()' to get a clue. at /var/www/Postmill/vendor/symfony/messenger/Middleware/HandleMessageMiddleware.php:130)\n[previous exception] [object] (Doctrine\\ORM\\ORMInvalidArgumentException(code: 0): A new entity was found through the relationship 'App\\Entity\\ForumLogSubmissionDeletion#submission' that was not configured to cascade persist operations for entity: App\\Entity\\Submission@1805. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={\"persist\"}). If you cannot find out which entity causes the problem implement 'App\\Entity\\Submission#__toString()' to get a clue. at /var/www/Postmill/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:100)"} []
[2023-05-12T18:31:14.041289+00:00] security.DEBUG: Stored the security token in the session. {"key":"_security_main"} []
```https://gitlab.com/postmill/Postmill/-/issues/88Can't install using Node 18+2023-04-30T23:08:36ZJohn RupertCan't install using Node 18+If you try to install Postmill while using the latest LTS version of NodeJS (which is currently version 18), you get an error during the `yarn run build-prod` phase;
```
yarn run v1.22.19
$ encore production
Running webpack ...
node:in...If you try to install Postmill while using the latest LTS version of NodeJS (which is currently version 18), you get an error during the `yarn run build-prod` phase;
```
yarn run v1.22.19
$ encore production
Running webpack ...
node:internal/crypto/hash:71
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports (/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/node_modules/webpack/lib/NormalModule.js:417:16)
at handleParseError (/node_modules/webpack/lib/NormalModule.js:471:10)
at /node_modules/webpack/lib/NormalModule.js:503:5
at /node_modules/webpack/lib/NormalModule.js:358:12
at /node_modules/loader-runner/lib/LoaderRunner.js:373:3
at iterateNormalLoaders (/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
at Array.<anonymous> (/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
at Storage.finished (/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
at /node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
at /node_modules/graceful-fs/graceful-fs.js:123:16
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v18.16.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
```
You can solve this by downgrading to NodeJS 16.https://gitlab.com/postmill/Postmill/-/issues/87Allow users to rename themselves.2023-02-20T10:22:33Z`{third: "Beedell", first: "Roke"}`{.JSON5}7ijrd91j@rokejulianlockhart.addy.ioAllow users to rename themselves.I'd like to not have to create a new account whenever I want to modify my username. Accounts shouldn't be using user-facing and user-chosen data for internal reference anyway.
There'd be a darn lot more dead accounts on Instagram if thi...I'd like to not have to create a new account whenever I want to modify my username. Accounts shouldn't be using user-facing and user-chosen data for internal reference anyway.
There'd be a darn lot more dead accounts on Instagram if this were disallowed there, and I already have 3 unused Reddit accounts due to this problem.
Mastodon at least somewhat remediates it with their brilliant migration and redirection features.https://gitlab.com/postmill/Postmill/-/issues/86Support ActivityPub federation.2023-02-20T11:34:32Z`{third: "Beedell", first: "Roke"}`{.JSON5}7ijrd91j@rokejulianlockhart.addy.ioSupport ActivityPub federation.https://github.com/hummingbird-me/kitsu-server/issues/1316#issue-1582215723 provides my rationale.https://github.com/hummingbird-me/kitsu-server/issues/1316#issue-1582215723 provides my rationale.https://gitlab.com/postmill/Postmill/-/issues/82Gitlab has become cumbersome to use for receiving outside contributions2022-05-11T10:14:46ZEmmaGitlab has become cumbersome to use for receiving outside contributionsThe cr\*pto dorks have abused pipelines (CI) to mine monopoly money, and Gitlab has shut off pipelines to new users without a verified credit card in response. This makes Gitlab.com essentially useless for a project like Postmill that ha...The cr\*pto dorks have abused pipelines (CI) to mine monopoly money, and Gitlab has shut off pipelines to new users without a verified credit card in response. This makes Gitlab.com essentially useless for a project like Postmill that has automated test suites & releases, and receives outside contributions.
https://forum.gitlab.com/t/preventing-crypto-mining-abuse-on-gitlab-com-saas/52911
Possible solutions are:
* Wait for Gitlab to respond to the outcry and fix the issue
* Quite likely to happen, but they will take their sweet time
* Continue performing tedious workarounds that break the merge request workflow
* Would rather not do this as it just makes working on the project feel like a waste of time
* Migrate CI somewhere else
* Where?
* Migrate the whole project somewhere else
* Could be a self-hosted Gitlab instance, I guess
* How do we avoid the abuse on a self-hosted instance?
Suggestions on how to handle this are welcome.EmmaEmmahttps://gitlab.com/postmill/Postmill/-/issues/73Minor issue with wiki pages pagination2020-07-25T23:27:19ZGhost UserMinor issue with wiki pages paginationMaybe this already exists but it would be nice to be able to see all the wiki pages on one page. This makes it easy to ctrl+f through them.
Right now it seems that the only way to see all the wikis is to go to <https://raddle.me/wiki/_al...Maybe this already exists but it would be nice to be able to see all the wiki pages on one page. This makes it easy to ctrl+f through them.
Right now it seems that the only way to see all the wikis is to go to <https://raddle.me/wiki/_all> and repeatedly click "Next".https://gitlab.com/postmill/Postmill/-/issues/72Trashed posts should not be displayed in search results2020-07-08T14:46:40ZEmmaTrashed posts should not be displayed in search resultsEmmaEmmahttps://gitlab.com/postmill/Postmill/-/issues/71New instances of Postmill should generate a cryptographically secure app secr...2020-07-06T10:20:44ZEmmaNew instances of Postmill should generate a cryptographically secure app secret automaticallyhttps://gitlab.com/postmill/Postmill/-/issues/68Horizontal space on mobile is being wasted on excessive margins/paddings2020-07-03T08:55:54ZEmmaHorizontal space on mobile is being wasted on excessive margins/paddingsA fair bit of horizontal space is wasted on submissions and comments on mobile. This is particularly problematic with comments, where the left-side margin increases for each reply to another comment.
![image](/uploads/905f6aaaeec6d6fb68...A fair bit of horizontal space is wasted on submissions and comments on mobile. This is particularly problematic with comments, where the left-side margin increases for each reply to another comment.
![image](/uploads/905f6aaaeec6d6fb682000541ac513b9/image.png)
![image](/uploads/74dc5c91e229bf10cba8ec3ffda416e5/image.png)https://gitlab.com/postmill/Postmill/-/issues/62Events are dispatched from DomainEventsListener too early2020-05-16T12:16:59ZEmmaEvents are dispatched from DomainEventsListener too earlyThey should be dispatched after flushing, but this is not the case.They should be dispatched after flushing, but this is not the case.EmmaEmmahttps://gitlab.com/postmill/Postmill/-/issues/56Normalize internal URLs in search results2020-02-25T12:08:08ZEmmaNormalize internal URLs in search resultsIf a Postmill instance is available on two different hosts (e.g. `example.com` and `example.onion`), then searching for `example.com` should also include results for links to `example.onion`.If a Postmill instance is available on two different hosts (e.g. `example.com` and `example.onion`), then searching for `example.com` should also include results for links to `example.onion`.EmmaEmmahttps://gitlab.com/postmill/Postmill/-/issues/49Classification can only use English labels2019-06-18T15:18:55ZRedClassification can only use English labelsClassification can only use English labels。
![2019-06-18_002533](/uploads/7338ab96ff492ddde5c31ae9d9ac5745/2019-06-18_002533.png)Classification can only use English labels。
![2019-06-18_002533](/uploads/7338ab96ff492ddde5c31ae9d9ac5745/2019-06-18_002533.png)https://gitlab.com/postmill/Postmill/-/issues/31Clear up confusing UI elements2019-09-04T13:56:55ZEmmaClear up confusing UI elementsHere are some problems with the user interface that I've been made aware of over a longer period of time.
* ~~**Notification inbox/message inbox**~~
Apparently it isn't obvious that there's a separate inbox for messages in additio...Here are some problems with the user interface that I've been made aware of over a longer period of time.
* ~~**Notification inbox/message inbox**~~
Apparently it isn't obvious that there's a separate inbox for messages in addition to the notification inbox. One person told me they never cleared their notification inbox because they didn't want to lose PMs they were sent, despite being available from user menu → Messages.
* **User blocking isn't obvious**
User blocking was intended to prevent reply notifications and private messages from a particular user from reaching. It was never intended to hide all the blocked user's posts, or prevent them from replying to you, but it seems people expect it to work like that.
Proposed solution: make it more clear that blocking is actually "block notifications" and not "hide everything user ever did".
* **Every listing of things should have a button to make more of those things**
Examples: user block list should have a button to block users, ban list should have a button to add bans.
* ~~**Some pages are only accessible via their URLs**~~
Account/user settings for other users, latest comments page, global moderation log, probably more.
Proposed solution: find places it makes sense to put links to these pages.
I will add more stuff as I become aware of it.https://gitlab.com/postmill/Postmill/-/issues/28When global banning - there should be an option to undo all of that person's ...2018-04-06T14:06:04ZTequila WolfWhen global banning - there should be an option to undo all of that person's up/downvotes.Very useful to combat trolls who are making multple accounts and mass-voting things.Very useful to combat trolls who are making multple accounts and mass-voting things.https://gitlab.com/postmill/Postmill/-/issues/26A seperate role for forum bots?2018-04-03T15:53:42ZsqewlA seperate role for forum bots?I suggest adding a user-defined role for bots where:
* Bot posts are not counted in the number of comments
* Bot posts do not show up in the comments feed
* Bot posts do not have their comments affect the sorting
* Bot posts do not provi...I suggest adding a user-defined role for bots where:
* Bot posts are not counted in the number of comments
* Bot posts do not show up in the comments feed
* Bot posts do not have their comments affect the sorting
* Bot posts do not provide inbox notifications
I think this would be great if admins could designate this role. This would be helpful because utility bots in forums can affect sorting algorithms or dominate the new comments section.https://gitlab.com/postmill/Postmill/-/issues/25Votes before loging in aren't remembered2018-04-02T05:42:43ZJorge Maldonado Venturajorgesumle@freakspot.netVotes before loging in aren't rememberedFor instance, I've not logged in and I downvote something. I'm redirected to the login page, and after logging in, the vote score hasn't changed.For instance, I've not logged in and I downvote something. I'm redirected to the login page, and after logging in, the vote score hasn't changed.https://gitlab.com/postmill/Postmill/-/issues/24Set of potential improvements that would make modding and admining easier2018-04-02T05:45:58ZTequila WolfSet of potential improvements that would make modding and admining easierTo help mods, it would be useful to have:
- a way to see recent comments by forum, e.g. /f/forumname/comments
- a way to see recent comments for all moderated forums, e.g. /moderated/comments
To help admins, it would be useful to have,...To help mods, it would be useful to have:
- a way to see recent comments by forum, e.g. /f/forumname/comments
- a way to see recent comments for all moderated forums, e.g. /moderated/comments
To help admins, it would be useful to have, on the user list:
- a way to filter the list to limit it to untrusted users who have posted submissions or comments (so that admins can quickly search for users who are untrusted and have made posts so that they may be marked as trusted)
- an option to mark users as more than just "Trusted" - maybe also "Probation" for those users who aren't clearly not trolls. This option is especially useful when searching through userlists for people to mark as trusted, so that admins can see that they have already looked at a user. It will also help admins know where to return to check again.
- when a user is globally permabanned, let that show as their role. And it may be better if unbanning returned them to untrusted status.
- there should be an option to skip to the end of the user list, and to jump larger distances through it, instead of just moving to the next/previous page.
- an option to delete accounts, and in large quantities at once instead of individually. Perhaps only for those accounts with no activity initially, but a general option to delete accounts is also desirable.https://gitlab.com/postmill/Postmill/-/issues/21Support LibreJS by marking JavaScript as free2019-05-11T07:41:55ZEmmaSupport LibreJS by marking JavaScript as freeSee discussion at #20.
Problems with implementing this:
> - LibreJS doesn't recognise the Zlib licence Postmill is released under.
>
> - There is no easy way to get LibreJS to work with our build system. Postmill uses several third-par...See discussion at #20.
Problems with implementing this:
> - LibreJS doesn't recognise the Zlib licence Postmill is released under.
>
> - There is no easy way to get LibreJS to work with our build system. Postmill uses several third-party libraries installed through npm, transpiles ES2015 code into an older version of JavaScript that browsers understand, splits some libraries and code snippets into separate chunks that are loaded on-demand (building assets will generate hundreds of smaller `.js` files!), and minifies it all. You'll have to find a way of annotating every one of these files with the correct licence when building the front-end assets. The annotations should be doable by writing a Webpack plugin, but identifying the correct licences for each file I'm not sure is possible.https://gitlab.com/postmill/Postmill/-/issues/18Add image uploading capability for forum moderators for use with custom forum...2018-02-06T19:37:09ZAloysius MinchAdd image uploading capability for forum moderators for use with custom forum themingReddit lets subreddit moderators upload images to be used in custom subreddit CSS files and I'd like to use similar functionality too! So that I could then use the picture by writing something along the following in a custom forum CSS th...Reddit lets subreddit moderators upload images to be used in custom subreddit CSS files and I'd like to use similar functionality too! So that I could then use the picture by writing something along the following in a custom forum CSS theme:
body {
background-image: url(//postmill.instance.org/uploads/f8e5g.png);
}
Here's what I sketched with Google Chrome's tools but couldn't accomplish on Postmill:
![moonside-earthbound-admin-proposal](/uploads/f858427357ee461508b33d687ec11268/moonside-earthbound-admin-proposal.png)
The proposed feature has slight potential for abuse given that users might upload abusive imagery. Few points on possible mitigation:
1. AFAIK user accounts need to be older than 24 hours to make their own forum. Similar (or longer) limitation could apply to image uploading capabilities as well. (After all, some other user could make another a moderator before the 24 hours limit has passed.)
2. Image uploading could also be rate limited to, say, ten images per forum per day as that would offer ample room for genuine use and its mistakes while limiting the potential damage.
3. Uploaded images per forum could be capped at some smallish number to let genuine users upload, say, a logo and a background for the forum but not much else.
4. Image size (in kilo/megabytes) probably needs to be limited. This could be an admin setting.
No other issues come to my mind, but the proposed feature would enhance the visual possibilities of forums greatly.https://gitlab.com/postmill/Postmill/-/issues/5Manual Submission Image Upload / Edit2023-05-08T17:27:38ZKijabiManual Submission Image Upload / EditI'm finding images are only pulled successfully about 40% - 50% of the time depending on the source type and for some large sites like Amazon they never get pulled at all. Also, there are times for some posts when it would be great to b...I'm finding images are only pulled successfully about 40% - 50% of the time depending on the source type and for some large sites like Amazon they never get pulled at all. Also, there are times for some posts when it would be great to be able to upload a specific submission image.
Is there currently a way to do this? If there's no way to do it currently then I'd like to submit this as a feature request.