github: shadowy octopus with the head of a robot, emblazoned with the Dreamwidth swirl (Default)
github ([personal profile] github) wrote in [site community profile] changelog2020-06-02 09:18 pm

[dreamwidth/dw-free] b8f64a: Use foundation resource group in error template, b...

Branch: refs/heads/master
Home: https://github.com/dreamwidth/dw-free
Commit: b8f64a033c78959f6a005ada2c27876f3e64e03d
https://github.com/dreamwidth/dw-free/commit/b8f64a033c78959f6a005ada2c27876f3e64e03d
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M views/error.tt

Log Message:
-----------
Use foundation resource group in error template, because why not


Commit: 8794f4c76c3294fcb0b4cbace69a1f8072f43150
https://github.com/dreamwidth/dw-free/commit/8794f4c76c3294fcb0b4cbace69a1f8072f43150
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M htdocs/mobile/login.bml
M htdocs/mobile/login.bml.text

Log Message:
-----------
Remove some antique garbage from mobile login screen


Commit: 65fc1bfa25e536066525cd20351b4a9c2a45d54c
https://github.com/dreamwidth/dw-free/commit/65fc1bfa25e536066525cd20351b4a9c2a45d54c
Author: Ruth <momijizukamori@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
A cgi-bin/DW/Controller/Talk.pm
R htdocs/talkpost_do.bml
A views/talkpost_do.tt
A views/talkpost_do.tt.text

Log Message:
-----------
Convert talkpost_do to controller/TT


Commit: 362bb33740fa3ad493aedec93b807f650ed50e19
https://github.com/dreamwidth/dw-free/commit/362bb33740fa3ad493aedec93b807f650ed50e19
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/DW/Controller/Talk.pm

Log Message:
-----------
Minor proofreading in Talk controller

hash dereferences, one .bml path name, print debugs


Commit: 6a548d2564d698f6a9f2bfc77965ab1d1e9eb552
https://github.com/dreamwidth/dw-free/commit/6a548d2564d698f6a9f2bfc77965ab1d1e9eb552
Author: Ruth <momijizukamori@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/DW/Controller/Talk.pm
M cgi-bin/LJ/Talk.pm

Log Message:
-----------
Fixed OpenID comment posting


Commit: 22c80c7ccdaca0e132d5348f12e995360864b25a
https://github.com/dreamwidth/dw-free/commit/22c80c7ccdaca0e132d5348f12e995360864b25a
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/DW/Controller/Talk.pm

Log Message:
-----------
Talk controller: Fix void context warnings in comparisons

These looked sketchy as heck. The warnings went away after cleaning them up.


Commit: b1fb7d23f8d5da2a0cc26a100f9448e53f344229
https://github.com/dreamwidth/dw-free/commit/b1fb7d23f8d5da2a0cc26a100f9448e53f344229
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/DW/Controller/Talk.pm

Log Message:
-----------
Talk controller: Render template for preview

Preview wasn't outputting at all without this.


Commit: e34e10d6b89b5397a7054b202980e87f076cb2b8
https://github.com/dreamwidth/dw-free/commit/e34e10d6b89b5397a7054b202980e87f076cb2b8
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/DW/Controller/Talk.pm

Log Message:
-----------
Talk controller: set active resource group to jquery early to fix captcha

Remember the long comment I wrote about need_res, specifically the bit about how
it's kind of sketchy to check $LJ::ACTIVE_RES_GROUP before the whole page is
finished because we don't make any guarantees about its state at any given
point? The textCAPTCHA implementation checks $LJ::ACTIVE_RES_GROUP instead of
just calling need_res, so by the time the template calls
set_active_resource_group, it's too late and we have an unusable version of the
captcha JS (legacy, not jquery or foundation).


Commit: 93cce228509da603be9c417f26489535fa6a9dcf
https://github.com/dreamwidth/dw-free/commit/93cce228509da603be9c417f26489535fa6a9dcf
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M views/talkpost_do.tt

Log Message:
-----------
talkpost_do.tt cleanups

- Fix the "double success" / "successful error" headers
- Remove chalresp_js (it's dead, dude)


Commit: 30f576cc0327fea28821f703356516c41f9e23cc
https://github.com/dreamwidth/dw-free/commit/30f576cc0327fea28821f703356516c41f9e23cc
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/LJ/Talk.pm

Log Message:
-----------
Scour inline BML from make_preview (finish 1-1 talkpost_do conversion)

Hardcoding 'hotcolor', since spellcheck's on borrowed time anyhow. Otherwise
this didn't seem to be doing anything interesting.

As of this commit, everything seems to work, and the Talk controller acts as a
1-1 conversion of the old talkpost_do.bml. There's no tests for any of this
behavior, naturally, but I ran a fairly hellish manual testing matrix before
and after the conversion:

- Currently (logged out, site login, openid login)
- Posting as (self, anon, user (one-off), user (login), openid (one-off), openid (login))
- Performing (post, preview, preview-then-post, whiff-captcha-and-fix)

For the most part, it preserved any existing bugs and didn't add any new ones.
One exception:

- Fixes #2572?! 🙌🏼


Commit: e70d371c0e70a368c0e931905b49dab79ab94556
https://github.com/dreamwidth/dw-free/commit/e70d371c0e70a368c0e931905b49dab79ab94556
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/DW/Controller/Talk.pm
M cgi-bin/LJ/S2/ReplyPage.pm
M cgi-bin/LJ/Talk.pm

Log Message:
-----------
talkform: Stop pointlessly copying "editid" to "edit"

I think this was because the old talkform function was too frightening to touch.


Commit: c3585cd8cde8374912b3d75ffdc364cb427e0d63
https://github.com/dreamwidth/dw-free/commit/c3585cd8cde8374912b3d75ffdc364cb427e0d63
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/LJ/S2.pm
M cgi-bin/LJ/Talk.pm
M cgi-bin/LJ/User/Journal.pm
M cgi-bin/LJ/Web.pm

Log Message:
-----------
User/Journal.pm: Refactor the "can't comment?" methods

These weren't what they could be, mostly to work around some slightly incoherent
behavior in S2 for conditionally printing quickreply links. So this shuffles
some things around and adds an umbrella method that checks everything (usually
what you want) and understands undef as anon.


Commit: d2fa8fc399e48c75607bdad8d42017935fc57119
https://github.com/dreamwidth/dw-free/commit/d2fa8fc399e48c75607bdad8d42017935fc57119
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M bin/upgrading/deadphrases.dat
M bin/upgrading/en.dat
M cgi-bin/DW/Controller/Talk.pm
M cgi-bin/LJ/Comment.pm
M cgi-bin/LJ/Talk.pm

Log Message:
-----------
LJ::Talk::Post::init - initial refactoring

I'm just setting the explosive charges, here.

- LJ::Talk::init looks like ancient detritus from some kind of behavior
transition that ended eons ago. Inline it.
- Delete a ton of stuff that never gets used.
- Return an LJ::Entry in 'item' instead of a one-off hashref. We were creating
like three Entry objects anyway, so let's do it ONCE and just hold onto it.
- Fix a minor spam/security hole -- we were trying to prevent unvalidated
OpenIDs from commenting in places where anons aren't allowed, but the check
was in a branch that OpenID users couldn't end up in. No one ever noticed
this, because the comment forms WERE properly blocking anon-like OIDs, but if
you edited the form in your browser's web inspector, you could get in.


Commit: 993ebbeb52dd05d88110ad220cf399a2ea69f786
https://github.com/dreamwidth/dw-free/commit/993ebbeb52dd05d88110ad220cf399a2ea69f786
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M bin/upgrading/deadphrases.dat
M cgi-bin/DW/Controller/Talk.pm
M cgi-bin/LJ/Comment.pm
M cgi-bin/LJ/Talk.pm
R htdocs/talkpost.bml.text
M views/talkpost_do.tt.text

Log Message:
-----------
LJ::T::P::i - refactor checks/munging into prepare_and_validate_comment

This moves all of LJ::Talk::Post::init's permissions / coherency / formatting
rules into a separate function, which is still long as hell but which at least
has a reasonable scope of responsibilities. It also grabs some rules that
belonged with these but had ended up in the callers instead of init, presumably
because nobody wanted to edit init.

While we're at it: Move ml strings to the new talkpost_do.tt.text. Bin the old
file and the dead strings.


Commit: cafe5c841027e4ac25d61013d93413518759269b
https://github.com/dreamwidth/dw-free/commit/cafe5c841027e4ac25d61013d93413518759269b
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/LJ/Comment.pm

Log Message:
-----------
LJ::Comment->create - use prepare_and_validate_comment instead of init

It doesn't need any of the user authentication stuff since it's receiving an
already-authenticated user from its caller (Protocol), so it can skip all that.

LJ::Talk::Post::init now has only a single caller.


Commit: 62659ce8002c7ae224e431b688ba4767299795cd
https://github.com/dreamwidth/dw-free/commit/62659ce8002c7ae224e431b688ba4767299795cd
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/LJ/Talk.pm

Log Message:
-----------
LJ::T::P::i - Refactor user lookup into authenticate_user_and_mutate_form

The form mutation was always one of the most haunted-ass pieces of init. We're
still doing a little bit of it, but mostly just so talkform can tell you've
logged in.

All of the downstream things that need the old behavior are already getting
what they need from prepare_and_validate_comment, which fakes it reliably.

LJ::Talk::Post::init now does about as little as possible.


Commit: 6c07fe7cf372a12e00dc42bdd7172565cbc40cec
https://github.com/dreamwidth/dw-free/commit/6c07fe7cf372a12e00dc42bdd7172565cbc40cec
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/LJ/Talk.pm

Log Message:
-----------
Talk: Refactor chrp validation into a function


Commit: 7faf3d52794ae1d5d51be8af58ea2f463f942366
https://github.com/dreamwidth/dw-free/commit/7faf3d52794ae1d5d51be8af58ea2f463f942366
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/DW/Controller/Talk.pm
M cgi-bin/LJ/Comment.pm
M cgi-bin/LJ/Talk.pm

Log Message:
-----------
Completely destroy LJ::Talk::Post::init

Sleep tight, you hunk of garbage. 💀

This moves all of the integration and stuff that's specific to receiving
comments from a web form into the Talk controller, which is where it seems to
properly belong. That includes authenticate_user_and_mutate_form, since it's
really just an implementation detail of those forms.


Commit: 0486399941ff86fae4207ca988cc2ce8908c8c1f
https://github.com/dreamwidth/dw-free/commit/0486399941ff86fae4207ca988cc2ce8908c8c1f
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/DW/Controller/Talk.pm
M cgi-bin/LJ/Talk.pm

Log Message:
-----------
Refactor LJ::Talk::Post::edit_comment


Commit: 9151cd86f6dcf1e46fe30bbdd90ed9e5fb0b191c
https://github.com/dreamwidth/dw-free/commit/9151cd86f6dcf1e46fe30bbdd90ed9e5fb0b191c
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/DW/Controller/Talk.pm
M cgi-bin/LJ/Comment.pm
M cgi-bin/LJ/Talk.pm
M cgi-bin/LJ/Test.pm

Log Message:
-----------
Refactor LJ::Talk::Post::post_comment


Commit: 60d9324cf5f5ccc2ab2109ad8fe67f3e65b1144d
https://github.com/dreamwidth/dw-free/commit/60d9324cf5f5ccc2ab2109ad8fe67f3e65b1144d
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/LJ/Talk.pm

Log Message:
-----------
prepare_and_validate_comment: Stop setting usertype

Purging some lingering taint of LJ::Talk::Post::init. Downstream functions now
check for this information in a less demented way.


Commit: de8ce76a3b48338c1dac528f99da5a1032a3bc9f
https://github.com/dreamwidth/dw-free/commit/de8ce76a3b48338c1dac528f99da5a1032a3bc9f
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/DW/Controller/Talk.pm
M views/talkpost_do.tt.text

Log Message:
-----------
Re-refactor authenticate_user_and_mutate_form, clean up controller

- Make the return signature of the auth function easier to wrangle with.
- Don't need to do that delayed form_auth check since we're not in BML anymore;
the controller handles it for us, and it should be perfectly fine with the
timing of things like the openID check.
- Fix some ml strings.


Commit: 788385fb6f55e96a3cf057c4bccd3ca796fd6e73
https://github.com/dreamwidth/dw-free/commit/788385fb6f55e96a3cf057c4bccd3ca796fd6e73
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/DW/Controller/Talk.pm

Log Message:
-----------
Bring talkpost_do into the s2foundation beta

Just switching the resource group based on whether a user is in the beta.

I'm doing this now even though it's conceptually last, because it lets me rip
some hacks out of the comment forms while I'm doing some unrelated cleanups in
them. I'm assuming this would make the preview form into an unbelievable mess,
but I never actually tried that because by this point I was Super Done with
make_preview's intractable bugginess.


Commit: c002675e6ab4ffe10a913b97255b89609370e14d
https://github.com/dreamwidth/dw-free/commit/c002675e6ab4ffe10a913b97255b89609370e14d
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M bin/upgrading/deadphrases.dat
M bin/upgrading/en.dat
M cgi-bin/DW/Controller/Talk.pm
M cgi-bin/LJ/S2/ReplyPage.pm
M cgi-bin/LJ/Talk.pm
M cgi-bin/LJ/Web.pm
M views/journal/talkform.tt

Log Message:
-----------
Some maintenance work on the reply forms

A fair bit going on in here, but it's all miscellaneous.

- Removing spellcheck from the talkform, since I'm about to rebuild preview.

- If the form was submitted with a username and password and we need to display
the same form again, we now pre-fill the password so you don't need to re-type
it. This makes the new preview behavior feel much more humane. It felt a little
squirrelly at first, but it's going over HTTPS anyway, and the "someone goes to
your computer as soon as you stand up" threat model has bigger fish to fry.

If you submitted a WRONG password, we don't pre-fill that. That's handled by
authenticate_user_and_mutate_form.

- Now that talkpost_do isn't perma-locked to the jquery resource group, we can
display the new talkform on it. That means we don't have to sniff around at
$LJ::ACTIVE_RES_GROUP anymore! (The only reason we were doing that was because
the new talkform looked wack on talkpost_do.) Knocking that out of the QR too,
while I'm at it.

- Leaving some breadcrumbs behind for the next person, with the stuff I learned
recently about the various ID formats.

- Rearranging some stuff for legibility.

- Make talkform call LJ::get_remote instead of having $remote passed in. The
behavior of the "from" options interacts directly with the global login state,
so you'll never want to override $remote with something fake.

- Heyyyy, we don't need to deal with LJ::Talk::Post::init vandalizing the
usertype field anymore!!! (The new auth function does still munge usertype, but
it does it to accurately reflect how the login state has changed since the form
was submitted. Init would just straight-up lie to me.)


Commit: 0c5500cb32e5df3ffadcbc24b877294281e29e94
https://github.com/dreamwidth/dw-free/commit/0c5500cb32e5df3ffadcbc24b877294281e29e94
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/LJ/User/Account.pm

Log Message:
-----------
Update one comment in LJ/User/Account.pm


Commit: cc2318d3bfa252fda3753d7ca4996a9aeb43ed78
https://github.com/dreamwidth/dw-free/commit/cc2318d3bfa252fda3753d7ca4996a9aeb43ed78
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
A t/talkpost-authenticate-user.t

Log Message:
-----------
Tests: authenticate_user_and_mutate_form

I would have liked to have more of these, but unsurprisingly, those global
application state mutations are really unreliable in a test environment.


Commit: 9623842c36016741c53276cf29ec71690a8bf286
https://github.com/dreamwidth/dw-free/commit/9623842c36016741c53276cf29ec71690a8bf286
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
A t/talkpost-validate-comment.t

Log Message:
-----------
Tests: LJ::Talk::Post::prepare_and_validate_comment

It looks like this function is fairly testable! The only real barrier
to expanding this is tedium.


Commit: bd5042685cded6294d79f54cedd7c0c45721c83e
https://github.com/dreamwidth/dw-free/commit/bd5042685cded6294d79f54cedd7c0c45721c83e
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/DW/Controller/Talk.pm
M cgi-bin/LJ/Talk.pm
R htdocs/js/jquery.commentpreview.js
M views/talkpost_do.tt
A views/talkpost_do/preview_comment.tt
A views/talkpost_do/preview_parent.tt

Log Message:
-----------
Reimplement comment preview from scratch

LJ::Talk::Post::make_preview is unfixable. But the desired behavior isn't
complicated, so let's just huck it and replace it with a dumb template.

Ground rules:

- No new CSS.
- No loading components that aren't in LJ::Talk::init_s2journal_js.

Kinda wanted to fake up the inputs and call directly into the siteviews S2 code,
but nah. That siteviews markup structure is EXTREMELY STABLE, so we're better
off just mimicking enough of it for the off-the-shelf CSS to take effect.

This DOES change one notable behavior: Old preview deferred captcha and auth
by carrying it over as hidden inputs in its mutant reply form. New preview
validates the comment first, which consumes the captcha response. So if a
captcha is required, you need to do it when you submit for real, instead of
relying on one you previously did.

That mildly sucks, but only mildly:

- Preview's chill with errors, so you can ignore the captcha at first and only
fill it once you're done. (A little less intuitive, tho.)
- reCAPTCHAs expire in like two minutes anyway, right? You were totally getting
double-checked before anyway.

And hey, look what the new preview buys us:

- It reports errors, which you can fix WHILE you edit your comment text. Old
preview would act like things were fine, then Nope you on submit.
- The preview LOOKS like it's from the correct user, including userpic. (Old
preview said "anonymous" if it got confused, which was often.)
- If you picked an alt and chose "log in," you're fully logged in when the
preview loads. You can even pick one of your alt's icons during edits!
- (Beta) Not a hot mess on mobile.


Commit: 3310a44f6b2316ed7185f23bbba66cc76231529e
https://github.com/dreamwidth/dw-free/commit/3310a44f6b2316ed7185f23bbba66cc76231529e
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
A t/ban-observer-effect.t

Log Message:
-----------
Add test testing our ability to test relationship changes

This workaround is used in some existing tests, like vgift-trans.t, but I
couldn't find an explanation, so it seems reasonable to leave behind a test
whose name will likely draw the attention of whoever hits this next.


Commit: bc39f6d04ac8b570315d315276e2e68df42fe510
https://github.com/dreamwidth/dw-free/commit/bc39f6d04ac8b570315d315276e2e68df42fe510
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/LJ/Talk.pm

Log Message:
-----------
Update some comments about icon browser


Commit: ec7c9e9c749db979a8d9d918e61628a9c30bb88d
https://github.com/dreamwidth/dw-free/commit/ec7c9e9c749db979a8d9d918e61628a9c30bb88d
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M bin/upgrading/deadphrases.dat
R htdocs/talkpost_do.bml.text

Log Message:
-----------
Remove talkpost_do.bml.text, add to deadphrases


Commit: 2ae0baf793ec2693a408a41767d010d0e5ac0783
https://github.com/dreamwidth/dw-free/commit/2ae0baf793ec2693a408a41767d010d0e5ac0783
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/DW/Controller/Talk.pm
M cgi-bin/LJ/Comment.pm
M cgi-bin/LJ/S2.pm
M cgi-bin/LJ/S2/ReplyPage.pm
M cgi-bin/LJ/Talk.pm
M cgi-bin/LJ/Test.pm
M t/talkpost-authenticate-user.t
M t/talkpost-validate-comment.t

Log Message:
-----------
Tidy the universe


Commit: 12d615ed1e5e246cc6b4ca1755cfa854c55a73ca
https://github.com/dreamwidth/dw-free/commit/12d615ed1e5e246cc6b4ca1755cfa854c55a73ca
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/DW/Controller/Talk.pm
M cgi-bin/LJ/S2/DayPage.pm
M cgi-bin/LJ/S2/EntryPage.pm
M cgi-bin/LJ/S2/FriendsPage.pm
M cgi-bin/LJ/S2/RecentPage.pm
M cgi-bin/LJ/Talk.pm

Log Message:
-----------
init_s2journal_js: check the remote for iconbrowser permissions

Everything that ever calls this function passes the exact same
`$remote && $remote->can_use_userpic_select` value for $opts{iconbrowser}, and I
don't think there's any use case for checking against a user OTHER than the
currently logged-in one. So we might as well just change that argument to mean
"the iconbrowser is usable here," and move the permissions check into the
convenience function.

(The call in the Talk controller was currently using stale info. I was about to
change it to check $real_remote, but on further thought why not just make the
function better.)


Commit: 18fb2384aa4e49916ef874f15ae85fb1b2fbf0d8
https://github.com/dreamwidth/dw-free/commit/18fb2384aa4e49916ef874f15ae85fb1b2fbf0d8
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/DW/Controller/Talk.pm

Log Message:
-----------
"I'm OpenID" + "here's a username" is incoherent

Hey hey, one of the first payoffs for making that function stupider and more
obvious! The old implementation didn't check for this either, but no one ever
spotted it.


Commit: 8af150321c87533ff84482921c4c35a32369757d
https://github.com/dreamwidth/dw-free/commit/8af150321c87533ff84482921c4c35a32369757d
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/LJ/S2.pm
M cgi-bin/LJ/Talk.pm

Log Message:
-----------
Move some journal content CSS/JS into init_s2journal_js

S2.pm was globally need_ressing a few JS/CSS files that aren't relevant for some
S2 pages (tags/icons/month/year), but ARE relevant for most pages that display
entry or comment content (including the new preview). Every page that displays
journal content calls init_s2journal_js (or at least they SHOULD), so that seems
like the natural place for these.


Commit: 262ab03fa41ffa3cc0941644ce373c12ecff1e41
https://github.com/dreamwidth/dw-free/commit/262ab03fa41ffa3cc0941644ce373c12ecff1e41
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)

Changed paths:
M cgi-bin/LJ/Talk.pm

Log Message:
-----------
Fix a comment


Compare: https://github.com/dreamwidth/dw-free/compare/3f087ff1a471...262ab03fa41f