Article cover #299
Sem revisores
Rótulos
Sem rótulos
A: API
A: Backend
A: Federation
A: Front-End
A: I18N
A: Meta
A: Security
Build
C: Bug
C: Discussion
C: Enhancement
C: Feature
Compatibility
Dependency
Design
Documentation
Good first issue
Help welcome
Mobile
Rendering
S: Blocked
S: Duplicate
S: Incomplete
S: Instance specific
S: Invalid
S: Needs Voting/Discussion
S: Ready for review
Suggestion
S: Voted on Loomio
S: Wontfix
Sem etapa
Nenhum planeamento
Sem encarregados
2 Participantes
Notificações
Data de vencimento
Sem data de vencimento definida.
Dependências
Não estão definidas dependências.
Referência: Plume/Plume#299
Carregando…
Adicionar tabela
Criar uma nova questão referindo esta
Nenhuma descrição fornecida.
Eliminar o ramo "article-cover"
Eliminar um ramo é algo permanente. Embora o ramo eliminado possa continuar a existir por um breve período de tempo antes de ser realmente removido, a operação NÃO PODERÁ ser desfeita na maioria dos casos. Quer continuar?
Screenshots:
Fixes #236
I'm not 100% satisfied with the cover selector (a
<select>
field listing your media) but if we want to have a JavaScript-free implementation and to avoid duplicating the media upload form, I don't see any better solution. 🤷♀️I'm getting an error when accessing the page to create a new post, however only when I have at least one media uploaded with that account, and there is no issue with
/~/<blog>/<slug>/edit
About the cover selector, to be frank I don't really like how medias works currently, it feels strange to go to /medias/ to change your avatar. It feels strange too to upload medias on a page different than the one where you write your posts (which will hopefully be better when we start working on a rich text editor), and choosing from a
<select>
what media will be the cover feels the same, maybe even worth for peoples having a lot of uploaded medias as the time goes. It can stay like that for the moment, but we will need to address this in the future.Also make me through of one thing : while it's using a
<select>
, you should filter to only show images, not audio content for example (actually the same goes for peoples avatar, currently they can be an audio file)@ -633,0 +633,4 @@
#, fuzzy
msgid "Illustration"
msgstr "Administration"
wow fuzzy translation is so wrong
Yes, I agree the way media are currently working is not ideal. I think we can change it once will we will switch to a new editor, by adding the possibility to upload an avatar directly from the profile edition page, and to add any other media directly from the editor.
Anyway changing how we handle medias is neither the goal nor in the scope of this pr, so even if it's less than ideal, it shouldn't affect how we merge this pr (and actually making sure people are not using a song as a picture is not that important as in the end how they select those will be totally changed latter on)
This is the exact line that is failing. I think you can't compare
form.cover
becauseform
isnull
when creating a new article.if not form.cover
(2 lines above) is legal as it verify the existence of the field, and its "nullness", but a compare only make sense if the field exist, it being null or notThose 3
println!
were for debug only I guess, so they should be removedOops, you're right. 😬