How to hide timestamps in html mobile output?


(Kreg Swam) #1

2017-03-03 07:09:36 UTC #11

How to hide timestamps in html mobile output? (Not css hidden). Want to find elegant way to hide “2017-03-03 07:09:36 UTC” strings


(Régis Hanol) #2

Why would you want to do that? It’s used by the application to show the relative date.


(Kreg Swam) #3

I push many posts via api. And I think its suspicious for search bots to have post time stamps too close with each other(several posts per second). So want just prevent them from output.


(Régis Hanol) #4

Why don’t you set a different “created_at” date when pushing a post?


(Kreg Swam) #5

found your post https://meta.discourse.org/t/set-the-date-of-a-new-topic-via-the-api/43308/3?u=bitsw. Is “created_at” work now?

Anyway dealing with “created_at” needs to manage dates. I mean need to gather all posts timestamps and recreate them with valid intervals. Hide timetamp is most simple solution for my case. Is it possible without rebuild app?


(Régis Hanol) #6

Yes, it should work now.

No. You can only hide that value if you override the .erb file in a plugin.