[01:13:30] Hello [01:18:12] Is it okay to ask general questions in here about locked off extensions? [01:19:01] Yes [01:19:26] okay, so if a extension is locked, non-selectable - is there a way to request said extension? [01:20:32] which extension? [01:20:56] Translate is the name. [01:22:34] I think you should be able to enable it if you enable UniversalLanguageSelector, it's listed as a requirement below the extension's name [01:23:21] Oh, alright. Sorry, blind moment I suppose. [01:23:24] :x [01:38:24] No worries, it looks visually quite similar to restricted extensions [06:44:43] [1/2] Why Grafana has failed to load its app files [06:44:43] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1420299895990124554/rn_image_picker_lib_temp_3392478d-4ef2-4565-ba0b-54e5a8d33c01.jpg?ex=68d4e4db&is=68d3935b&hm=9c9aaa5d353cfd947f3cac3ccb56f00cc329c6d660007d6dbde80d258ac14909& [06:51:09] I've been getting that quite a bit as well when I was trying to save my CSS files. [07:38:26] Does Miraheze cooperate with WMF? [07:43:59] no [08:27:34] Hi - Looking to get a minor technical issue fixed. I've redone the Dailymotion template on AVID which was still using old widget markup. The only problem now is that when EmbedVideo tries to load them, Dailymotion embeds are being blocked by the CSP. Would any MH techs be able to assist? [09:10:26] [1/2] there is an error with the display of large images for some reason [09:10:26] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1420336563908247674/image.png?ex=68d50701&is=68d3b581&hm=f6e8be791fc526d40f457d4e092363b513e39a3a419adbd5011f134589ac402f& [09:12:51] so is there any substitute to CommentStreams in 1.44 [09:17:07] talk pages + discussiontools 🫣 [09:19:26] isn't it updated last week https://github.com/nbdd0121/MW-FlowThread [09:21:57] well i thought talk pages are intended for article writing while comments are for discussion about the theme of the article itself.. [09:25:13] and i'm sure there exist wikis using mw1.44 and this extension. e.g. https://iopwiki.com/wiki/Special:Version [09:35:39] i also found manual `` not working in mw 1.44. is this a known issue? [09:37:04] it only gives a blank `
/div` tag w/o the add comment button [09:39:28] yup [09:40:02] https://battlecats.miraheze.org/wiki/User_blog:TheWWRNerdGuy/2025-09-10-comments might help [09:41:35] well enabling comments in an entire namespace.. [09:41:41] that's crazy [09:42:30] not gonna do that yes [09:42:57] btw i wonder the idea about disabling cs and switching to userprofilev2 [09:43:21] battlecats obviously has many comments i've never seen another wiki with so many comments on each page [09:45:59] (tho my wiki also had to drop many comments when moving here from fandom and only has one new comment on mh now so i can really easily switch to any other comment extension [09:49:45] [1/2] considered requesting for flowthread but luckily i searched on phab first:ThinkingHardMH: [09:49:46] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1420346462646177802/image.png?ex=68d51039&is=68d3beb9&hm=669bf2361f1a39448be6f7e390f38c41514d640ac979f9277696018039d8cb1c& [09:59:09] you get a big pat on the back for that [09:59:35] no they're all declined [10:00:17] but i did find a wiki who pretends they have flowthread: [[mh:tnwgwiki"MediaWiki:Flowthread-ui-placeholder]] [10:00:18] [10:02:38] T4789: Don't we already have many security reviewed extensions providing these features? [10:02:41] no we don't [10:06:29] i'm considering if it's possible to implement a new comment system totally out of js, not the extensions. like just storage them as json in a separate namespace which can only be edited via the comment box [10:09:24] i really found many extensions are sometimes pseudo needs especially when they don't interface with the database, and can be rewritten with js and templates (tho the case for comments is a bit heavy [10:18:51] The suggestion was Flow which is going away imminently [10:19:01] So you can't enable on new wikis [10:19:08] But the security review was declined anyway [10:21:15] to me flow also seems more similar to talk page than to what's usually called comments [10:22:19] It would probably still get declined [10:22:28] WMF unfortunately abandoned Flow [10:22:39] It's been replaced with DiscussionTools [10:23:19] flow is not good [10:25:28] [1/2] its way to store posts and comments is weird [10:25:29] [2/2] DiscussionTools is essentially an editor for talk pages, in the end their structure doesn't change [10:25:51] i'm never considering flow either [10:28:47] bc i'm looking for comments instead of talk pages [10:28:55] btw commentstreams also store comments weirdly to m [10:29:43] why the random string pages in a new namespace and even now hide the db table from frontend [10:32:57] [1/2] ah well [10:32:58] [2/2] im not vibing w/ concept of comments on wikis [10:37:44] kinda useful on entertainment category wikis i think [10:56:04] according to my calculations the battle cats wiki has 44339 comments [10:56:15] I don't know if that's including deleted comments [12:25:08] This issue is not known to tech, at least not to me + there's no task for it, so I'd recommend filing one on [[Phorge]] [12:25:08] [12:40:25] ohh i believe i saw it's being talked right here before [13:17:38] I am new to using the Citizen Skin, is there a seperate page to edit the elements on the header menu such as the navigation list? Or is this only controlled over the Citizen.js? [13:22:37] not MediaWiki:Sidebar page? [13:27:22] Oh thank you seems to have been a cache issue tried editing the file but had no visual effect [13:30:10] MediaWiki pages are a bit slow on effect, try Purge button (for cache) or add `?action=purge` in URL [14:30:28] [1/2] > minimal updates in the last 2 years [14:30:28] [2/2] As in a few commits to support newer versions of MW. [14:31:59] so can it be submitted for review again now? [14:32:13] [1/2] CA said it's not as bad as before. So you might as well submit a request again and see what happens [14:32:13] [2/2] https://discord.com/channels/407504499280707585/407537962553966603/1398557838665846816 [14:51:04] okay. [[phab:T14323]] [14:51:05] [16:24:23] Hi [16:52:02] @posix_memalign it would be great to have native avatar support for a comment extension. CommentStreams is not integrated with userprofilev2 either and i'm totally using js stuff. in fact many extensions support socialprofile avatars but not userprofilev2 ones tho they're very similar [16:56:38] userprofilev2 avatar url depends on both user id and avatar extname is what really annoys. you have to check if png file exists and then if jpg file exists, and return default avatar if neither exists. flowthread's avatar link is based on username so i'm afraid it would still have to be implemented with js [16:57:36] some of my avatar codes: [[mh:xyy:MediaWiki:Gadget-UserlinkAvatar.js]] (avatar urls cached in common.js [16:57:37] [17:09:26] [1/5] Now the question is: who is going to do it and how. [17:09:27] [2/5] We can try to convince the maintainers of FlowThread to add some special checks for UserProfileV2 (e.g. if a config is set to true and the extension exists, use some function call to determine the profile picture). [17:09:27] [3/5] Or, we could try to convince @originalauthority to add the ability to query the avatar by user id in UserProfileV2 or to accept a patch that adds this feature. [17:09:27] [4/5] Imo the second option is easier because we're working with the MH tech team. [17:09:28] [5/5] Either way, some php needs to be written by someone. That person won't be me, at least for the next few weeks. Since the security review backlog is so long, I don't think the extension will be reviewed soon anyway. I might pick this up after I finish fixing issues with [ImgTag](https://github.com/lihaohong6/ImgTag) though. [17:10:07] [1/4] Is the replacetext's extension regex different from the standard one? Trying capture a specific area as show on the screenshots, but replace text ends up going below the red line, while in regex101 it doesn't :ThinkerMH: [17:10:07] [2/4] https://cdn.discordapp.com/attachments/407537962553966603/1420457275012939856/image.png?ex=68d5776d&is=68d425ed&hm=0155fb13217496f84be019143f63869a37ca706754a4dc9bbc8ad5e376508f81& [17:10:08] [3/4] https://cdn.discordapp.com/attachments/407537962553966603/1420457280918392923/image.png?ex=68d5776e&is=68d425ee&hm=7210c2411a3576508a8636b31f47299951ab553953922a50f3bbcddde0ef207e& [17:10:08] [4/4] https://cdn.discordapp.com/attachments/407537962553966603/1420457281618972846/image.png?ex=68d5776e&is=68d425ee&hm=f6c3fdd0628a01e8b441bbd8e224260717aa6e843d80b3dc626cfa0ba8360d7e& [17:11:00] Btw, I added a CommentStreams section for [the list of MW 1.44 breaking changes](https://meta.miraheze.org/wiki/MediaWiki/1.44#CommentStreams). I don't use this extension extensively, so if anyone knows anything else that got changed feel free to add to the list. [17:17:19] [1/3] https://www.mediawiki.org/wiki/Extension:Replace_Text#Using_regular_expressions [17:17:20] [2/3] "small subset". So there might be some things that are not available. [17:17:20] [3/3] I wonder if MassEditRegex allows for more regex features though. [17:17:44] [1/4] ```php [17:17:44] [2/4] $userId = User::newFromName( 'Original Authority' )->getId() [17:17:44] [3/4] $avatar = new UserProfileAvatar ( $userId )->getAvatarImage() [17:17:44] [4/4] ``` [17:17:48] if only masseditregex worked ⚰️ [17:20:20] Ah I see. You're trying to do non-greedy matching. It is a pretty fancy feature and I would not be surprised if ReplaceText doesn't support that. [17:21:13] [1/2] (or conversely ->getAvatarUrl if you want the URL resolved automatically, as ->getAvatarImage() returns the filename only) [17:21:14] [2/2] (see: https://github.com/wikimedia/mediawiki-skins-Cosmos/blob/918b5f9597e47752b170d8148140c1349d8eb70d/includes/CosmosTemplate.php#L390) [17:21:19] Oh nice! So on the FlowThread end it's a simple function call. On UserProfileV2's end one just needs a simple api to return the image when a query with the user id is submitted. [17:22:23] Thanks! This example is very helpful. Looks like FlowThread needs minimal changes to support UserProfileV2. [17:23:56] grab the `grab the `profile-avatar` key from the API endpoint already provided [17:24:39] https://meta.telepedia.net/api.php?action=query&format=json&list=queryuserprofilev2&meta=&formatversion=2&user_name=Original%20Authority [17:24:49] although Ig it only accepts a username atp [17:26:50] ohh i didn't notice this api [17:27:05] trying to fetch both png and jpg is stupid [17:27:45] I believe MassEditRegex only has what PHP has by default, which doesn't include some fancy stuff like lookarounds or backreferences [17:27:55] ? [17:28:05] you don't fetch both png or jpg, the service checks it for you [17:28:42] [1/5] This is good to know, though FlowThread expects something like [17:28:42] [2/5] ``` [17:28:42] [3/5] $wgFlowThreadConfig['Avatar'] = '/extensions/Avatar/avatar.php?user=${username}'; [17:28:43] [4/5] ``` [17:28:43] [5/5] So this extra step of indirection won't work out of the box and at least one extension needs to be changed, unfortunately. [17:28:59] i mean i didn't know the extension offers the api (at least not written out in the documentation on mw:) so i used the stupid way [17:29:22] erm, thats a bit dumb tbf [17:30:00] wait what does `[\s\S]` do, isn't that just matching everything [17:30:09] [1/2] wonderful this is exactly what i'd been wanting [17:30:09] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1420462324992446557/Screenshot_2025-09-25-01-29-05-260_mark.via-edit.jpg?ex=68d57c21&is=68d42aa1&hm=d2ee5e60eb186717ea97e02285e11e5b582505a6f48d085a45e0ed2021c81f88& [17:30:32] Anyway all regex engines are slightly different [17:30:38] [1/2] stupid me [17:30:38] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1420462446635778070/Screenshot_2025-09-25-01-30-19-661_mark.via-edit.jpg?ex=68d57c3e&is=68d42abe&hm=cbb6f0fefc7feb72a490830644210b1604a77ed830b41848f83c4a2f4f428f3d& [17:32:39] [1/2] they should provide an interface that can be implemented or extended, and then $wgFlowTheadConfig['avatar'] = UPV2Avatar::class [17:32:40] [2/2] and then call ->getAvatar or something on that. [17:32:43] PHP regexes are a lot easier to test since regex101 defaults to it (specifically PCRE2, which is named after Perl but don't mind the details). If it works on regex101 it probably works with the extension, which is a lot nicer. [17:34:57] Hmmm. I'll see if the maintainers can be convinced of supporting a different approach. I'm not familiar with PHP and am not sure how to compare different possible abstractions here. [17:35:11] iirc a lot of regex engines to be used in programming languages don't allow you to do lookarounds (e.g. Rust completely doesn't have them, Python only allows you to do constant-width lookarounds) or backreferences, while ones used for editing (AWB, VSCode) have all those fancy features [17:36:06] it seems like MassEditRegex only has the features you'd find in programming languages [17:36:20] <90gq29> yo, quick question but is it not possible to style/change the appearance of the cookie notice? [17:36:54] But in any case a simple (albeit hacky solution) would be to use an extension function or a callback and use a faux request to call the UPV2 endpoint internally with the users ID to get the api response and then take the avatar key from that [17:37:22] it's about to get replaced with something else so I would hold off on that [17:37:23] just use css, idk what you mean [17:37:35] <90gq29, replying to pskyechology> i see [17:37:54] <90gq29, replying to thewwrnerdguy> tried but it didnt affect it, highly likely it was just an issue with my css tho [17:38:30] [1/2] At least it supports non-greedy matching, and that's what we care about here. But MassEditRegex has some other issues, so it may not be a good solution in the end. [17:38:30] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1420464423557926953/image.png?ex=68d57e15&is=68d42c95&hm=0b0fd7b345accd5330b8275b99b303786631caf081028e9dbb5a96ca06456e75& [17:39:16] if you inspect element you can see what styles are being applied, my guess is it uses inline styles so you'd have to use !important to override them [17:39:42] <90gq29, replying to thewwrnerdguy> ill try that [17:40:32] The new cookie extension has been on mirabeta for several weeks now. Were there any concerns about it or did we just forget? We may have to take it out of MH Monthly if it doesn't get deployed by the end of the month. [17:40:35] I personally use MassEditRegex a lot, what are the problems with it? I've found that trying to execute stuff on the client doesn't work, and doing it on the server can time out if you're doing too much, but the preview feature saves a lot of time compared to just going at it with awb [17:41:32] not sure how far CA got with it, will have to ask him [17:41:47] earlier when I asked he did say it should be out before end of month [17:42:15] [1/3] page built in regex works while the replacetext doesn't :catharsis: [17:42:16] [2/3] https://cdn.discordapp.com/attachments/407537962553966603/1420465371026165915/image.png?ex=68d57ef7&is=68d42d77&hm=f5e91f9f1dd359366ac27f04ed70504210e48f641f9c2c1aa81f8ba179e47ac1& [17:42:16] [3/3] https://cdn.discordapp.com/attachments/407537962553966603/1420465371374288926/image.png?ex=68d57ef7&is=68d42d77&hm=8ca1ac8a460bd213af8bb7d2bda0181b9227510a95da3d6db112d856f6a20850& [17:43:07] [1/2] I was gonna say https://phabricator.wikimedia.org/T163056 but SomeRandomDeveloper already fixed it. [17:43:08] [2/2] I wish MW developer is like him lol. [17:43:29] oh so its fixed [17:43:30] gotta try [17:45:10] it works :catharsis: [17:45:34] Probably easier to go with the hacky solution then. There aren't that many extensions with avatar features anyway. Worst case scenario is that someone else piles another hack for SocialProfile on top of it. [17:46:23] waiting for the day when miraheze profile and comments will be as good as fandom ') [17:46:39] not our fault fandom doesn't wanna share [17:47:02] :ca: [17:49:12] Oh I just noticed that this is an 8-year-old bug that remains unfixed until a MH user encountered it and Random fixed it. [17:53:41] [1/2] or maybe not really... [17:53:41] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1420468246632730848/image.png?ex=68d581a5&is=68d43025&hm=e5947ad547157a9a8a3ed53819da9c9d42702321b20807ae71e245f5620ceb7a& [17:53:50] single pages work but categories just die [17:55:30] [1/2] 15 pages category [17:55:30] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1420468702738124973/image.png?ex=68d58211&is=68d43091&hm=5e23c7b5dc7dcbd6197fcd4813233d1eb212e3563bbb01b79188cb4fb4695fff& [18:02:25] It was stalled on https://phabricator.wikimedia.org/T404475, and ig CA didn't have time yet after the fix was pushed [18:02:40] Oh wait that task is not public yet