# /posts create and update consistency

**URL:** https://meta.discourse.org/t/posts-create-and-update-consistency/362783
**Category:** Development
**Created:** [April 21, 2025, 9:07am UTC](https://meta.discourse.org/t/posts-create-and-update-consistency/362783 "2025-04-21T09:07:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [April 21, 2025, 9:07am UTC](https://meta.discourse.org/t/posts-create-and-update-consistency/362783/1 "2025-04-21T09:07:31Z")

</div>

The [WP Discourse](https://github.com/discourse/wp-discourse) plugin currently uses a single request to create posts when publishing posts to Discourse and (potentially) two requests when updating posts.

The first request on update is to `PostController#update`, for the main post attributes, and the second is to `TopicController#update` to update the topic’s featured link, if that feature is being used.

There is some attempt in `PostController#update` to maintain consistency with `PostController#create`, e.g.

> <https://github.com/discourse/discourse/blob/main/app/controllers/posts_controller.rb#L257>

However, a topic’s featured link is not currently part of that consistency.

I’d like to make a PR to `discourse/discourse` to allow topic `featured_link` updates via `PostController#update`. It would simplify the [WP Discourse](https://github.com/discourse/wp-discourse) plugin’s update logic. I wanted to canvas the change here first in case I’m missing anything.
