delan / autost

cohost-compatible blog engine and feed reader
ISC License
25 stars 1 forks source link

Properly handle chosts with empty displayName #23

Closed VinDuv closed 1 day ago

VinDuv commented 5 days ago

I never set a display name on my cohost account, so when exported by cohost2json, my posts’ JSON have postingProject.displayName set to "".

This causes cohost2autost to generate posts with

<link rel="author" href="https://cohost.org/VinDuv" name=" (@VinDuv)">
<meta name="author_display_name" content="">

and the rendered posts show (@VinDuv) as author.

I think cohost2autost should set the author name to @handle if the displayName is blank (maybe author_display_name too? not sure), and render should show only the display handle without parentheses if the display name is blank or identical to the display handle.

delan commented 2 days ago

done in 5376d607a03cf...5138d370dd2ab! how does that look now?

VinDuv commented 1 day ago

Looks great, thanks!