# Getting data for the widget

**URL:** <https://meta.discourse.org/t/getting-data-for-the-widget/95632>\
**Category:** Development\
**Created:** [August 25, 2018, 4:26pm UTC](https://meta.discourse.org/t/getting-data-for-the-widget/95632 "2018-08-25T16:26:08Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)\
**Post date:** [August 25, 2018, 5:02pm UTC](https://meta.discourse.org/t/getting-data-for-the-widget/95632/4 "2018-08-25T17:02:33Z")

</div>

You might try something like this:

```plaintext
DiscoursePluginRegistry.serialized_current_user_fields << 'recent_time_read'

```

to add it to the serialized current user.

```plaintext
User.current().recent_time_read

```

Keep in mind that this will only be serialized once, on app load, and that to get an updated value you’ll either need to query for it directly, or use MessageBus to ‘live update’ the user’s read\_time.

---

_[View the full topic](https://meta.discourse.org/t/getting-data-for-the-widget/95632)._
