Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Fix rare issue upon editing self posts #1428

Closed
wants to merge 2 commits into from

Conversation

13steinj
Copy link
Contributor

Fixes a rare issue that occurs when editing self posts, as reported here

I would have fixed the other issues regarding the incorrect template when running on the userpage, but I'm not fluent enough in js to do so.

@umbrae
Copy link
Contributor

umbrae commented Oct 30, 2015

Wow, good find.

👓 @madbook

@madbook
Copy link
Contributor

madbook commented Oct 30, 2015

good catch! one small request, would you mind applying the same fix to https://github.com/reddit/reddit/blob/master/r2/r2/controllers/api.py#L3242-L3243, since it looks like it would suffer from the same issue?

long term I think I can nuke most of the replace_things code altogether - it's more complicated than it needs to be and apparently produces fun bugs like this! Until I can find time to do that though, scoping the response to the main .content div seams reasonable.

💅

@13steinj
Copy link
Contributor Author

@madbook do you mean the POST_hide endpoint? Just to be sure.

You'll probably want to sqaush this.
@13steinj
Copy link
Contributor Author

13steinj commented Nov 1, 2015

@madbook I think I figured out what you meant? It was hard to tell, as the url you gave was broken, but after testing I found the issue existed on distinguishing as well. 💇

@madbook
Copy link
Contributor

madbook commented Nov 2, 2015

Ah, yeah, that's what I meant. I'm guessing what happened is that some other commit was pushed up to master after I posted that link, which moved the line highlighting. Thanks for getting that too, I'll let you know when I get this merged in. 🐟 Thanks!

@13steinj
Copy link
Contributor Author

13steinj commented Nov 2, 2015

:P No problem!

@umbrae
Copy link
Contributor

umbrae commented Nov 5, 2015

cb12896 and 86ef81d

Thank you!

P.S. You've already got one open sourcerer trophy so I probably shouldn't add more each time. Maybe I could just change the text to "A bunch of stuff!" or something?

@umbrae umbrae closed this Nov 5, 2015
@13steinj
Copy link
Contributor Author

13steinj commented Nov 5, 2015

@umbrae Yeah; adding things would probably make my trophy case look ugly. If you want to change the text to that and the url link to this to clarify on what a "bunch of stuff" is, go for it :P

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants