-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: set publish as display #44
base: master
Are you sure you want to change the base?
Conversation
cd2b021
to
41eba82
Compare
Yeah, I imagine it has something to do with the move, form what I remember it only really old news items that had it set. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like it should work, can't test it properly since calypso seems to refuse to use my mock-servers.
I think this would use the editors mandates rather than the publisher, right? Is there a risk of accidentally changing publishAs for another persons news item? (relevant for d-rek, d-sys and kommunikatör)
Doesn't set publishAs when creating new right now, which should be fairly easy, the same logic could probably be used.
This is a problem in the live version as well. This is a weird fix, but best I could do now. I think we should disable the `publish_as` selector when someone but the user updates the post.
c724e72
to
1b9639b
Compare
I think it would make sense to be able to change publish_as in other cases too, but that would require fetching their names from dfunkt separately, so this seems like a least-effort good-enough solution With the behaviour before this commit, you could not change the mandate of an existing post, even if you just created it (which to me seems unneccessarily restrictive). But it seemed like you could in the frontend.
b093ce1
to
98a4c52
Compare
Wut. Are things happening here |
Det börjar bli dags |
Tried to go back in the history to see when this field disappeared buc could not see anything. Do you think it could be related to the switch from prometheus, @Herkarl ? Anyway, no it is being set explicitly on a post to
admin/edit
.Resolves #40